From: Ɓukasz Rekucki Date: Tue, 25 Aug 2009 09:59:58 +0000 (+0200) Subject: refs #61. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/affc845a8af21ea11ea4f500ed06ea2d1f8ea53d?hp=--cc refs #61. --- affc845a8af21ea11ea4f500ed06ea2d1f8ea53d diff --git a/project/static/css/master.css b/project/static/css/master.css index 76a56325..caeddda8 100644 --- a/project/static/css/master.css +++ b/project/static/css/master.css @@ -138,8 +138,8 @@ label { /* Toolbars with select box to change panel contents*/ .panel-toolbar { - position: absolute; - top: 0px; left:0px; right: 0px; height: 20px; + position: absolute; + top: 0px; left:0px; right: 0px; height: 20px; padding: 0 0 2px 0; border-top: 1px solid #AAA; @@ -174,7 +174,7 @@ label { .panel-wrap .panel-slider:hover { background-color: #999; - cursor: col-resize; + cursor: hand; } .panel-content-overlay.panel-wrap .panel-slider { @@ -184,7 +184,7 @@ label { /* ================= */ /* = Gallery panel = */ /* ================= */ -.images-wrap, .htmleditor { +.images-wrap, .panel-htmleditor { overflow-x: hidden; overflow-y: scroll; } diff --git a/project/static/js/jquery.logging.js b/project/static/js/jquery.logging.js new file mode 100644 index 00000000..02e10e40 --- /dev/null +++ b/project/static/js/jquery.logging.js @@ -0,0 +1,35 @@ +(function($) { + const LEVEL_DEBUG = 1; + const LEVEL_INFO = 2; + const LEVEL_WARN = 3; + + const LOG_LEVEL = LEVEL_DEBUG; + + var mozillaLog = function(msg) { + if (console) console.log(msg); + }; + + var operaLog = function(msg) { + opera.postError(msg); + }; + + var defaultLog = function(msg) { return false; }; + + $.log = function(message, level) { + if (level == null) level = LEVEL_INFO; + if (message == null) message = 'TRACE'; + if (level < LOG_LEVEL) + return false; + + return $.log.browserLog(message); + }; + + if ($.browser.mozilla || $.browser.safari) + $.log.browserLog = mozillaLog; + else if($.browser.opera) + $.log.browserLog = operaLog + else + $.log.browserLog = defaultLog; + + +})(jQuery); diff --git a/project/templates/explorer/panels/htmleditor.html b/project/templates/explorer/panels/htmleditor.html index 3b1791e1..45156772 100644 --- a/project/templates/explorer/panels/htmleditor.html +++ b/project/templates/explorer/panels/htmleditor.html @@ -1,18 +1,16 @@ -
-
- {{ html|safe }} -
-
+{{ html|safe }} \ No newline at end of file +