X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/1f58a10a88c18512abc9c84f49a04a18e00fa8c5..4251322e9eb5dfbe3ab182fecaafd4c7a5a85b83:/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); +} + +})(); +