Ignore:
Timestamp:
03/08/14 22:51:23 (11 years ago)
Author:
hendrikvanantwerpen
Message:
  • Mark content as dirty to prevent moving away from unsaved data.
  • Better change propagation from lists and our own widgets.
  • Generate notifications for errors and show correct message.
  • Moved all path/url generation to the class stores, not everywhere we use it.
  • Give user always a choice between Save and Save & Close.
  • Better refresh behaviour on form changes and saves.
  • Don't generate duplicate code error when existing object is the one you're storing.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/src/client/qed-client/widgets/LineWithActionsWidget.js

    r472 r490  
    4444                            onClick: lang.hitch(this, function(action, e){
    4545                                if ( action.callback ) { action.callback(e); }
    46                                 event.stop(e);
     46                                if ( e ) { event.stop(e); }
    4747                                return false;
    4848                            }, this.actions[action])
     
    5858                            onClick: lang.hitch(this, function(action, e){
    5959                                if ( action.callback ) { action.callback(e); }
    60                                 event.stop(e);
     60                                if ( e ) { event.stop(e); }
    6161                                return false;
    6262                            }, this.actions[action])
     
    7373            var preventDefault = this.onClick(e) === false;
    7474            if (preventDefault) {
    75                 event.stop(e);
     75                if ( e ) { event.stop(e); }
    7676            }
    7777            return !preventDefault;
Note: See TracChangeset for help on using the changeset viewer.