/* 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;
.panel-wrap .panel-slider:hover {
background-color: #999;
- cursor: col-resize;
+ cursor: hand;
}
.panel-content-overlay.panel-wrap .panel-slider {
/* ================= */
/* = Gallery panel = */
/* ================= */
-.images-wrap, .htmleditor {
+.images-wrap, .panel-htmleditor {
overflow-x: hidden;
overflow-y: scroll;
}
--- /dev/null
+(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);
-<div class="panel">
- <div class="htmleditor">
- {{ html|safe }}
- </div>
-</div>
+{{ html|safe }}
<script type="text/javascript" charset="utf-8">
(function() {
var id = Math.ceil(Math.random() * 1000000000);
- panel(function(event, panel) {
+ panel(function(event, me) {
$(document).bind('panel:contentChanged.' + id, function(event, p) {
- $('.change-notification', $(panel).parent()).fadeIn();
- })
- }, function(event, panel) {
+ $('.change-notification', $(me).parent()).fadeIn();
+ });
+ $(me).addClass('panel-htmleditor');
+ }, function(event, me) {
+ $(me).removeClass('panel-htmleditor');
$(document).unbind('panel:contentChanged.' + id);
});
})()
-</script>
\ No newline at end of file
+</script>