Fixed logging in FF. Scrolling should now magicly work.
authorŁukasz Rekucki <lrekucki@gmail.com>
Wed, 26 Aug 2009 09:05:35 +0000 (11:05 +0200)
committerŁukasz Rekucki <lrekucki@gmail.com>
Wed, 26 Aug 2009 09:05:35 +0000 (11:05 +0200)
project/static/css/master.css
project/static/js/editor.js
project/static/js/jquery.logging.js
project/templates/explorer/panels/htmleditor.html

index 74376ea..f2ca8c1 100644 (file)
@@ -120,6 +120,7 @@ label {
 /* contents */
 .panel-content {
        position: absolute;
+       overflow: auto;
        top: 22px; left: 0px; bottom:0px; right: 0px;
 }
 
index 4a1c9d1..234a436 100644 (file)
@@ -4,7 +4,6 @@ function Panel(panelWrap) {
        self.contentDiv = $('.panel-content', panelWrap);
        self.instanceId = Math.ceil(Math.random() * 1000000000);
        $.log('new panel - wrap: ', self.wrap);
-
        
        $(document).bind('panel:unload.' + self.instanceId, 
                        function(event, data) { self.unload(event, data); });   
@@ -18,7 +17,6 @@ function Panel(panelWrap) {
 
                return false;           
        });
-
 }
 
 Panel.prototype.callHook = function(hookName) {
@@ -56,7 +54,6 @@ Panel.prototype.unload = function(event, data) {
 
        if( data == this ) {
                $.log('unloading', this);
-               $(document).unbind('panel:unload.' + this.instanceId);
         $(this.contentDiv).html('');
                this.callHook('unload');
                this.hooks = null; // flush the hooks
index 3b9175b..0f0df51 100644 (file)
@@ -27,7 +27,7 @@
 
        if ($.browser.mozilla)
                $.log.browserLog = mozillaLog;
-       if ($.browser.safari)
+       else if ($.browser.safari)
            $.log.browserLog = safariLog;
        else if($.browser.opera)
                $.log.browserLog = operaLog;
index d5e0acb..3323cf1 100644 (file)
@@ -2,11 +2,11 @@
 <script type="text/javascript" charset="utf-8">
 panel_hooks = {
        load: function() 
+
        {
-               this.contentDiv.addClass('panel-htmleditor');
        },
        unload: function() {
-               this.contentDiv.removeClass('panel-htmleditor');
+
        }
 };
 </script>