move js files from js/pandora to js, fixes #1366

This commit is contained in:
j 2013-07-16 12:15:05 +00:00
commit a9b7738aa8
104 changed files with 7 additions and 2 deletions

21
static/js/sectionbar.js Normal file
View file

@ -0,0 +1,21 @@
// vim: et:ts=4:sw=4:sts=4:ft=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;
};