nodes
This commit is contained in:
parent
1436b14003
commit
75a14fed1e
18 changed files with 251 additions and 121 deletions
|
|
@ -12,15 +12,15 @@ oml.ui.list = function() {
|
|||
delete oml.$ui.previewDialog;
|
||||
},
|
||||
copy: function(data) {
|
||||
oml.clipboard.copy(data.ids, 'item');
|
||||
oml.clipboard.copy(data.ids, 'book');
|
||||
},
|
||||
copyadd: function(data) {
|
||||
oml.clipboard.copy(data.ids, 'item');
|
||||
oml.clipboard.copy(data.ids, 'book');
|
||||
},
|
||||
cut: function(data) {
|
||||
var listData = oml.getListData();
|
||||
if (listData.editable && listData.type == 'static') {
|
||||
oml.clipboard.copy(data.ids, 'item');
|
||||
oml.clipboard.copy(data.ids, 'book');
|
||||
oml.doHistory('cut', data.ids, ui._list, function() {
|
||||
oml.UI.set({listSelection: []});
|
||||
oml.$ui.folders.updateElement();
|
||||
|
|
@ -31,7 +31,7 @@ oml.ui.list = function() {
|
|||
cutadd: function(data) {
|
||||
var listData = oml.getListData();
|
||||
if (listData.editable && listData.type == 'static') {
|
||||
oml.clipboard.add(data.ids, 'item');
|
||||
oml.clipboard.add(data.ids, 'book');
|
||||
oml.doHistory('cut', data.ids, ui._list, function() {
|
||||
oml.UI.set({listSelection: []});
|
||||
oml.$ui.folders.updateElement();
|
||||
|
|
@ -96,6 +96,15 @@ oml.ui.list = function() {
|
|||
oml.$ui.previewDialog.updateElement();
|
||||
}
|
||||
},
|
||||
paste: function(data) {
|
||||
var items = oml.clipboard.paste();
|
||||
if (items.length && oml.clipboard.type() == 'book' && oml.getListData().editable) {
|
||||
oml.doHistory('paste', items, ui._list, function() {
|
||||
oml.UI.set({listSelection: items});
|
||||
oml.reloadList();
|
||||
});
|
||||
}
|
||||
},
|
||||
resize: function(data) {
|
||||
// this is the resize event of the split panel
|
||||
that.size();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue