pandora/static/js/sectionbar.js
2018-06-19 08:33:26 +02:00

21 lines
593 B
JavaScript

'use strict';
pandora.ui.sectionbar = function(mode, isDragAndDrop) {
var that = Ox.Bar({
size: 24
})
.append(
mode == 'buttons'
? 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);
}
}
});
return that;
};