~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/app/javascript/picker.js

  • Committer: Ian Booth
  • Date: 2011-04-19 15:10:57 UTC
  • mfrom: (12868 devel)
  • mto: This revision was merged to the branch mainline in revision 12983.
  • Revision ID: ian.booth@canonical.com-20110419151057-he56y6k29c4zeiyk
MergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
358
358
        });
359
359
    var picker = new Y.lazr.Picker(new_config);
360
360
 
 
361
    // We don't want the Y.lazr.Picker default save to fire since this hides
 
362
    // the form. We want to do this ourselves after any validation has had a
 
363
    // chance to be performed.
 
364
    picker.publish('save', { defaultFn: function(){} } );
 
365
    
361
366
    picker.subscribe('save', function (e) {
362
367
        Y.log('Got save event.');
363
 
        e.preventDefault();
364
368
        var picker_result = e.details[Y.lazr.Picker.SAVE_RESULT];
365
369
        var do_save = function() {
366
370
            if (Y.Lang.isFunction(config.save)) {