Skip to content
This repository has been archived by the owner on Sep 29, 2019. It is now read-only.

Commit

Permalink
* fixed: 'pointer' cursor over panel title on non-collapsible panels …
Browse files Browse the repository at this point in the history
…(changed to 'default')
  • Loading branch information
idlesign committed Aug 6, 2009
1 parent 050d175 commit b65f398
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions ui.panel.js
@@ -1,5 +1,5 @@
/*
* Panel Draft 0.3.4.1
* Panel Draft 0.3.5
* for jQuery UI
*
* Copyright (c) 2009 Igor 'idle sign' Starikov
Expand Down Expand Up @@ -109,6 +109,8 @@
if (o.collapsed) {
self.toggle(0, true);
}
} else {
this.titleTextBox.css('cursor','default');
}
// making panel draggable if not accordion-like
if (!o.accordion && o.draggable && $.fn.draggable){ this._makeDraggable(); }
Expand All @@ -125,6 +127,7 @@
return $.cookie.apply(null, [cookie].concat($.makeArray(arguments)));
},

// ui.draggable config
_makeDraggable: function() {
this.panelBox.draggable({
containment: 'document',
Expand All @@ -143,6 +146,7 @@
return false;
},

// disables panel (usign appropiate ui class)
disable: function (disable){
var o = this.options;

Expand All @@ -163,6 +167,7 @@
o.disabled = disable;
},

// toggles panel state (folded/unfolded)
toggle: function (collapseSpeed, innerCall){
var self = this,
o = this.options,
Expand Down Expand Up @@ -261,10 +266,12 @@
headerBox.toggleClass('ui-corner-all');
},

// sets panel's content
content: function(content){
this.contentTextBox.html(content);
},

// destroys panel
destroy: function(){
var o = this.options;

Expand Down Expand Up @@ -294,7 +301,7 @@
});

$.extend($.ui.panel, {
version: '0.3.4.1',
version: '0.3.5',
defaults: {
event: 'click',
collapsible: true,
Expand Down

0 comments on commit b65f398

Please sign in to comment.