X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/1f58a10a88c18512abc9c84f49a04a18e00fa8c5..96647893c5a1e2c675fc2b1bf1d7ca16fe3253b8:/project/templates/explorer/panels/htmleditor.html?ds=sidebyside diff --git a/project/templates/explorer/panels/htmleditor.html b/project/templates/explorer/panels/htmleditor.html index 0eab0b28..bd1bd50e 100644 --- a/project/templates/explorer/panels/htmleditor.html +++ b/project/templates/explorer/panels/htmleditor.html @@ -1,18 +1,20 @@ -
-
- {{ html|safe }} -
-
+{{ html|safe }} \ No newline at end of file +var id = Math.ceil(Math.random() * 1000000000); + +load_callback = function(panel) { + $(document).bind('panel:contentChanged.' + id, function(event, p) { + $('.change-notification', $(this).parent()).fadeIn(); + }); + $(this).addClass('panel-htmleditor'); +} + +unload_callback = function(panel) { + $(me).removeClass('panel-htmleditor'); + $(document).unbind('panel:contentChanged.' + id); +} + +})(); +