1
0
Fork 0
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:
rlx 2011-11-08 10:27:49 +00:00
commit 243614cee2
3 changed files with 54 additions and 33 deletions

View file

@ -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') {