pandora/static/js/sectionbar.js

22 lines
593 B
JavaScript
Raw Permalink Normal View History

2011-11-05 17:04:10 +00:00
'use strict';
2018-06-19 06:33:26 +00:00
2013-07-15 11:39:23 +00:00
pandora.ui.sectionbar = function(mode, isDragAndDrop) {
2011-06-19 17:49:25 +00:00
var that = Ox.Bar({
2011-05-25 19:42:45 +00:00
size: 24
})
.append(
2011-12-22 07:24:30 +00:00
mode == 'buttons'
2013-07-15 11:39:23 +00:00
? pandora.$ui.sectionButtons = pandora.ui.sectionButtons(isDragAndDrop)
: pandora.$ui.sectionSelect = pandora.ui.sectionSelect(isDragAndDrop)
)
.bindEvent({
doubleclick: function(e) {
if ($(e.target).is('.OxBar')) {
pandora.$ui.folders.animate({scrollTop: 0}, 250);
}
}
});
2011-05-25 19:42:45 +00:00
return that;
};