2012-06-04 10:57:55 +00:00
|
|
|
// 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({
|
2012-06-04 10:57:55 +00:00
|
|
|
buttons: [
|
|
|
|
Ox.Button({
|
|
|
|
id: 'cancel',
|
2013-05-09 10:13:58 +00:00
|
|
|
title: Ox._('Don\'t Reset')
|
2012-06-04 10:57:55 +00:00
|
|
|
})
|
|
|
|
.bindEvent({
|
|
|
|
click: function() {
|
|
|
|
that.close();
|
|
|
|
}
|
|
|
|
}),
|
|
|
|
Ox.Button({
|
|
|
|
id: 'reset',
|
2013-05-09 10:13:58 +00:00
|
|
|
title: Ox._('Reset')
|
2012-06-04 10:57:55 +00:00
|
|
|
}).bindEvent({
|
|
|
|
click: function() {
|
|
|
|
that.close();
|
2012-06-30 20:03:32 +00:00
|
|
|
pandora.$ui.preferencesDialog.close();
|
|
|
|
pandora.UI.set({page: ''});
|
|
|
|
pandora.UI.reset();
|
2012-06-04 10:57:55 +00:00
|
|
|
}
|
|
|
|
})
|
|
|
|
],
|
2013-08-08 13:04:51 +00:00
|
|
|
content: Ox._('Are you sure you want to reset all UI settings?'),
|
2012-06-04 10:57:55 +00:00
|
|
|
keys: {enter: 'reset', escape: 'cancel'},
|
2013-05-09 10:13:58 +00:00
|
|
|
title: Ox._('Reset UI Settings')
|
2012-06-04 10:57:55 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
return that;
|
|
|
|
|
2013-05-09 10:13:58 +00:00
|
|
|
};
|