forked from 0x2620/pandora
move js files from js/pandora to js, fixes #1366
This commit is contained in:
parent
b5eda32bbd
commit
a9b7738aa8
104 changed files with 7 additions and 2 deletions
21
static/js/sectionbar.js
Normal file
21
static/js/sectionbar.js
Normal 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;
|
||||
};
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue