pandora/static/js/pandora/resetUIDialog.js

36 lines
1,018 B
JavaScript
Raw Normal View History

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