forked from 0x2620/oxjs
when removing an element, unbind global keyboard handler; delay request timeout dialog until after window unload
This commit is contained in:
parent
314788dd24
commit
243614cee2
3 changed files with 54 additions and 33 deletions
|
|
@ -107,6 +107,7 @@ Ox.List = function(options, self) {
|
|||
itemMargin: self.options.type == 'text' ? 0 : 8, // 2 x 4 px margin ... fixme: the 2x should be computed later
|
||||
keyboardEvents: {
|
||||
key_control_c: copyItems,
|
||||
key_control_e: editItems,
|
||||
key_control_n: function() {
|
||||
addItem('');
|
||||
},
|
||||
|
|
@ -413,6 +414,14 @@ Ox.List = function(options, self) {
|
|||
}
|
||||
}
|
||||
|
||||
function editItems() {
|
||||
/*
|
||||
self.options.selected.length && that.triggerEvent('edit', {
|
||||
ids: self.options.selected
|
||||
});
|
||||
*/
|
||||
}
|
||||
|
||||
function emptyFirstPage() {
|
||||
if (self.$pages[0]) {
|
||||
if (self.options.type == 'text') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue