and more...
This commit is contained in:
parent
10d2f35b7b
commit
0c18dad1b5
20 changed files with 293 additions and 146 deletions
38
static/js/deleteListDialog.js
Normal file
38
static/js/deleteListDialog.js
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
'use strict';
|
||||
|
||||
oml.ui.deleteListDialog = function() {
|
||||
|
||||
var ui = oml.user.ui,
|
||||
|
||||
that = oml.ui.confirmDialog({
|
||||
buttons: [
|
||||
Ox.Button({
|
||||
title: Ox._('No, Keep List')
|
||||
}),
|
||||
Ox.Button({
|
||||
title: Ox._('Yes, Delete List')
|
||||
})
|
||||
],
|
||||
content: Ox._('Are you sure you want to delete this list?'),
|
||||
title: Ox._('Delete List')
|
||||
}, function() {
|
||||
oml.api.removeList({
|
||||
id: ui._list
|
||||
}, function() {
|
||||
oml.UI.set({
|
||||
find: {
|
||||
conditions: [{
|
||||
key: 'list',
|
||||
operator: '==',
|
||||
value: ':'
|
||||
}],
|
||||
operator: '&'
|
||||
}
|
||||
});
|
||||
oml.updateLists();
|
||||
});
|
||||
});
|
||||
|
||||
return that;
|
||||
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue