Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 417a6f3f

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

  • ID 417a6f3fd2e8cb93fe61e6be2a496895401b9810
  • Vorgänger 5aec18fe
  • Nachfolger 48623399

PartPicker: enter hooks überlagerbar gemacht

Unterschiede anzeigen:

js/kivi.Part.js
289 289
      limit: 20,
290 290
      delay: 50,
291 291
      fat_set_item: $real.hasClass(CLASSES.FAT_SET_ITEM),
292
      action: {
293
        on_enter_match_none:  function(){},
294
        on_enter_match_one:   function(){$('#update_button').click();},
295
        on_enter_match_many:  function(){open_dialog();}
296
      }
292 297
    }, options);
293 298
    var STATES = {
294 299
      PICKED:    CLASSES.PICKED,
......
487 492
        }
488 493
        if (event.which == KEY.ENTER) {
489 494
          handle_changed_text({
490
            match_one:  function(){$('#update_button').click();},
491
            match_many: function(){open_dialog();}
495
            match_one:  o.action.on_enter_match_one,
496
            match_many: o.action.on_enter_match_many
492 497
          });
493 498
          return false;
494 499
        }

Auch abrufbar als: Unified diff