pandora/static/js/resetUIDialog.js

37 lines
1 KiB
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-05-09 10:13:58 +00:00
title: Ox._('Don\'t Reset')
})
.bindEvent({
click: function() {
that.close();
}
}),
Ox.Button({
id: 'reset',
2013-05-09 10:13:58 +00:00
title: Ox._('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();
}
})
],
content: Ox._('Are you sure you want to reset all UI settings?'),
keys: {enter: 'reset', escape: 'cancel'},
2013-05-09 10:13:58 +00:00
title: Ox._('Reset UI Settings')
});
return that;
2013-05-09 10:13:58 +00:00
};