Ignore:
Timestamp:
03/10/14 17:10:16 (11 years ago)
Author:
hendrikvanantwerpen
Message:
File:
1 edited

Legend:

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

    r500 r501  
    99    "dojo/dnd/common",
    1010    "dojo/dom-construct",
     11    "dojo/_base/event",
    1112    "dojo/on"
    12 ], function(_Container, _WidgetBase, registry, array, declare, lang, Source, dnd, domConstruct, on) {
     13], function(_Container, _WidgetBase, registry, array, declare, lang, Source, dnd, domConstruct, event, on) {
    1314    return declare([_WidgetBase,_Container],{
    1415        name: "",
     
    5859                        lang.hitch(this,'_handleChange')));
    5960        },
     61        create: function() {
     62            this.inherited(arguments);
     63            this._onChangeActive = true;
     64        },
    6065        creator: function(item, hint) {
    6166            var id = dnd.getUniqueId();
     
    7479                }
    7580            }
    76             this.own(on(nodeOrWidget,'change',lang.hitch(this,'_handleChange')));
     81            //this.own(on(nodeOrWidget,'change',lang.hitch(this,'_handleChange')));
    7782            var node = nodeOrWidget.domNode ? nodeOrWidget.domNode : nodeOrWidget;
    7883            if ( hint !== "avatar" && node.id !== id ) {
     
    122127        appendItems: function(items,forceEvent) {
    123128            this.source.insertNodes(false,items);
    124             if ( forceEvent ) { this._handleChange(); }
     129            if ( forceEvent ) { this._handleDrop(); }
    125130        },
    126131        appendItem: function(item,forceEvent) {
    127132            this.source.insertNodes(false,[item]);
    128             if ( forceEvent ) { this._handleChange(); }
     133            if ( forceEvent ) { this._handleDrop(); }
    129134        },
    130135        removeItem: function(key,forceEvent) {
     
    133138            }), lang.hitch(this, "_destroyNodeOrWidget"));
    134139            this.source.delItem(key);
    135             if ( forceEvent ) { this._handleChange(); }
     140            if ( forceEvent ) { this._handleDrop(); }
    136141        },
    137142        getChildren: function() {
     
    144149                          lang.hitch(this, "_destroyNodeOrWidget"));
    145150            this.source.clearItems();
    146             if ( forceEvent ) { this._handleChange(); }
     151            if ( forceEvent ) { this._handleDrop(); }
    147152        },
    148153        _destroyNodeOrWidget: function(node) {
Note: See TracChangeset for help on using the changeset viewer.