Revision 4d325a8d
Von Sven Schöling vor fast 8 Jahren hinzugefügt
js/kivi.Part.js | ||
---|---|---|
292 | 292 |
delay: 50, |
293 | 293 |
fat_set_item: $real.hasClass(CLASSES.FAT_SET_ITEM), |
294 | 294 |
action: { |
295 |
on_enter_match_none: function(){},
|
|
296 |
on_enter_match_one: function(){$('#update_button').click();},
|
|
297 |
on_enter_match_many: function(){open_dialog();}
|
|
295 |
on_enter_match_none: function(){ },
|
|
296 |
on_enter_match_one: function(){ $('#update_button').click(); },
|
|
297 |
on_enter_match_many: function(){ open_dialog(); }
|
|
298 | 298 |
} |
299 | 299 |
}, options); |
300 | 300 |
var STATES = { |
... | ... | |
360 | 360 |
$real.val(''); |
361 | 361 |
$dummy.val(''); |
362 | 362 |
} |
363 |
state = STATES.PICKED; |
|
364 |
last_real = $real.val(); |
|
363 |
state = STATES.PICKED;
|
|
364 |
last_real = $real.val();
|
|
365 | 365 |
last_dummy = $dummy.val(); |
366 | 366 |
$real.trigger('change'); |
367 | 367 |
|
... | ... | |
444 | 444 |
if (callbacks && callbacks.match_many) callbacks.match_many(data); |
445 | 445 |
} else { |
446 | 446 |
state = STATES.UNDEFINED; |
447 |
if (callbacks &&callbacks.match_none) callbacks.match_none(); |
|
447 |
if (callbacks && callbacks.match_none) callbacks.match_none();
|
|
448 | 448 |
} |
449 | 449 |
annotate_state(); |
450 | 450 |
} |
Auch abrufbar als: Unified diff
kivi.Part.js: Formatierung