Ignore:
Timestamp:
03/13/14 00:44:08 (11 years ago)
Author:
hendrikvanantwerpen
Message:
  • Added open item options to singe and multiple choice.
  • Question view widgets are forms again, because we needed the control.
  • Multiple and singel choice share their widgets.
  • QuestionEditorPreview? now has items that were already there close, but opens newly dropped items.
  • PreviewItems? will save modified value even when we change to view before the widget loses its focus (which causes a change event).
File:
1 edited

Legend:

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

    r510 r511  
    1818            });
    1919        },
    20         createListElement: function(id, item) {
     20        createListElement: function(id, item, fromDrop) {
    2121            var previewItem = new QuestionEditorPreviewItem({
    2222                id: id,
    2323                value: item
    2424            });
    25             previewItem.showEdit();
     25            previewItem.startup();
     26            if ( fromDrop ) { previewItem.showEdit(); }
    2627            this.own(previewItem.on('destroy',
    2728                                    lang.hitch(this,'removeItem',id,true)));
    28             previewItem.startup();
    2929            return previewItem;
    3030        }
Note: See TracChangeset for help on using the changeset viewer.