diff --git a/admin/javascript/LeftAndMain.Preview.js b/admin/javascript/LeftAndMain.Preview.js index ae3ed3d7d..2a8f04305 100644 --- a/admin/javascript/LeftAndMain.Preview.js +++ b/admin/javascript/LeftAndMain.Preview.js @@ -211,6 +211,7 @@ */ _block: function() { this.addClass('blocked'); + this.find('.cms-preview-overlay').show(); return this; }, @@ -219,6 +220,7 @@ */ _unblock: function() { this.removeClass('blocked'); + this.find('.cms-preview-overlay').hide(); return this; }, @@ -405,20 +407,6 @@ } }); - /** - * Update the "preview unavailable" overlay according to the class. - */ - $('.cms-preview.blocked').entwine({ - onmatch: function() { - this.find('.cms-preview-overlay').show(); - this._super(); - }, - onunmatch: function() { - this.find('.cms-preview-overlay').hide(); - this._super(); - } - }); - /** * "Preview state" functions. * -------------------------------------------------------------------