Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 120225aa

Von Sven Schöling vor etwa 8 Jahren hinzugefügt

  • ID 120225aa6c3c1a80f45613cdc969c2bf17bb5a03
  • Vorgänger 68b29955
  • Nachfolger 68bfe305

kivi.Part.js: on_enter_match_* umbenannt in commit_*

Unterschiede anzeigen:

js/kivi.Part.js
limit: 20,
delay: 50,
action: {
on_enter_match_none: function(){ },
on_enter_match_one: function(){ $('#update_button').click(); },
on_enter_match_many: function(){ self.open_dialog(); }
commit_none: function(){ },
commit_one: function(){ $('#update_button').click(); },
commit_many: function(){ self.open_dialog(); }
}
}, $real.data('part-picker-data'), options);
this.$real = $real;
......
self.set_item({});
return true;
} else if (self.state == self.STATES.PICKED) {
if (self.o.action.on_enter_match_one) {
self.run_action(self.o.action.on_enter_match_one);
if (self.o.action.commit_one) {
self.run_action(self.o.action.commit_one);
}
return true;
}
......
}
if (event.which == KEY.ENTER) {
self.handle_changed_text({
match_one: self.o.action.on_enter_match_one,
match_many: self.o.action.on_enter_match_many
match_one: self.o.action.commit_one,
match_many: self.o.action.commit_many
});
return false;
}

Auch abrufbar als: Unified diff