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

View file

@ -0,0 +1,36 @@
// vim: et:ts=4:sw=4:sts=4:ft=javascript
'use strict';
pandora.ui.resetUIDialog = function(data) {
var that = pandora.ui.iconDialog({
buttons: [
Ox.Button({
id: 'cancel',
title: Ox._('Don\'t Reset')
})
.bindEvent({
click: function() {
that.close();
}
}),
Ox.Button({
id: 'reset',
title: Ox._('Reset')
}).bindEvent({
click: function() {
that.close();
pandora.$ui.preferencesDialog.close();
pandora.UI.set({page: ''});
pandora.UI.reset();
}
})
],
keys: {enter: 'reset', escape: 'cancel'},
text: Ox._('Are you sure you want to reset all UI settings?'),
title: Ox._('Reset UI Settings')
});
return that;
};