trigger cut and cutadd events (consumer of list events may want to differentiate between cut and delete)
This commit is contained in:
parent
989cb2c945
commit
20137da742
1 changed files with 5 additions and 2 deletions
|
@ -39,6 +39,8 @@ Ox.List <f> List constructor
|
||||||
closepreview <!> preview closed
|
closepreview <!> preview closed
|
||||||
copy <!> copy and replace clipboard
|
copy <!> copy and replace clipboard
|
||||||
copyadd <!> copy and add to clipboard
|
copyadd <!> copy and add to clipboard
|
||||||
|
cut <!> cut and replace clipboard
|
||||||
|
cutadd <!> cut and add to clipboard
|
||||||
delete <!> item removed
|
delete <!> item removed
|
||||||
draganddrop <!> Fires during drag
|
draganddrop <!> Fires during drag
|
||||||
draganddropend <!> Fires on drop
|
draganddropend <!> Fires on drop
|
||||||
|
@ -394,8 +396,9 @@ Ox.List = function(options, self) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function cutItems(add) {
|
function cutItems(add) {
|
||||||
copyItems(add);
|
self.options.selected.length && that.triggerEvent('cut' + (add ? 'add' : ''), {
|
||||||
deleteItems();
|
ids: self.options.selected
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function deleteItems() {
|
function deleteItems() {
|
||||||
|
|
Loading…
Reference in a new issue