26 lines
618 B
JavaScript
26 lines
618 B
JavaScript
'use strict';
|
|
|
|
oml.ui.resetUIDialog = function(data) {
|
|
|
|
var that = oml.ui.confirmDialog({
|
|
buttons: [
|
|
Ox.Button({
|
|
style: 'squared',
|
|
title: Ox._('No, Don\'t Reset')
|
|
}),
|
|
Ox.Button({
|
|
style: 'squared',
|
|
title: Ox._('Yes, Reset')
|
|
})
|
|
],
|
|
content: Ox._('Are you sure you want to reset all UI settings?'),
|
|
title: Ox._('Reset UI Settings')
|
|
}, function() {
|
|
oml.$ui.userDialog.close();
|
|
oml.UI.set({page: ''});
|
|
oml.UI.reset();
|
|
});
|
|
|
|
return that;
|
|
|
|
};
|