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