barisusakli 10 years ago
parent 2c2586b578
commit 01b012d89d

@ -22,6 +22,14 @@ define('composer', [
$(window).off('resize', onWindowResize).on('resize', onWindowResize); $(window).off('resize', onWindowResize).on('resize', onWindowResize);
$(window).on('action:popstate', function(ev, data) {
var env = utils.findBootstrapEnvironment();
if (composer.active && (env === 'xs' || env ==='sm')) {
discard(composer.active);
}
});
// Query server for formatting options // Query server for formatting options
socket.emit('modules.composer.getFormattingOptions', function(err, options) { socket.emit('modules.composer.getFormattingOptions', function(err, options) {
composer.formatting = options; composer.formatting = options;

Loading…
Cancel
Save