X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/275dc6c6f5c92630c9a1fca0f1830ba543cd18b7..96647893c5a1e2c675fc2b1bf1d7ca16fe3253b8:/project/templates/explorer/panels/htmleditor.html?ds=inline 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); +} + +})(); +