Changeset 24646
- Timestamp:
- 07/10/2013 07:17:01 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/js/revisions.js
r24638 r24646 249 249 properties.to = this.revisions.get( revisions.settings.selectedRevision ); 250 250 properties.from = this.revisions.prev( properties.to ); 251 properties.compareTwoMode = false; 251 252 this.set( properties ); 252 253 … … 895 896 routes: { 896 897 'from/:from/to/:to': 'handleRoute', 897 'at/:to': ' routeSingle'898 'at/:to': 'handleRoute' 898 899 }, 899 900 … … 910 911 var from, to, compareTwo; 911 912 912 // If `b` is undefined, this was a 'revision/:to' route913 // If `b` is undefined, this is an 'at/:to' route, for a single revision 913 914 if ( _.isUndefined( b ) ) { 914 915 b = a; 915 916 a = 0; 917 compareTwo = false; 918 } else { 916 919 compareTwo = true; 917 } else {918 compareTwo = false;919 920 } 920 921
Note: See TracChangeset
for help on using the changeset viewer.