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/app/Content.js

    r443 r490  
    88        _container: null,
    99        _previousContent: null,
     10        _dirty: false,
    1011        startup: function() {
    1112            if ( this._started ) { return; }
     
    3233            }
    3334            widget.region = 'center';
     35            this._previousContent = widget;
    3436            this._container.addChild(widget);
    35             this._previousContent = widget;
    3637        },
    3738        notify: function(text,type) {
     
    4041            }
    4142            this._toaster.setContent(text,type || 'message');
     43        },
     44        markDirty: function() {
     45            this._dirty = true;
     46        },
     47        markClean:function() {
     48            this._dirty = false;
     49        },
     50        isDirty: function() {
     51            return this._dirty;
    4252        }
    4353    });
Note: See TracChangeset for help on using the changeset viewer.