Ticket #24736: 24736.patch
File 24736.patch, 894 bytes (added by , 12 years ago) |
---|
-
wp-admin/js/revisions.js
12 12 revisions.debug = true; 13 13 14 14 revisions.log = function() { 15 if ( revisions.debug )15 if ( window.console && revisions.debug ) 16 16 console.log.apply( console, arguments ); 17 17 }; 18 18 … … 342 342 properties.baseUrl = revisions.settings.baseUrl; 343 343 this.set( properties ); 344 344 345 // Start the router 346 this.router = new revisions.Router({ model: this }); 347 Backbone.history.start({ pushState: true }); 345 // Start the router if browser supports History API 346 if ( window.history && window.history.pushState ) { 347 this.router = new revisions.Router({ model: this }); 348 Backbone.history.start({ pushState: true }); 349 } 348 350 }, 349 351 350 352 updateLoadingStatus: function() {