Ignore:
Timestamp:
08/06/12 18:41:53 (13 years ago)
Author:
hendrikvanantwerpen
Message:
  • Removed some id's from elements in templates, these give problems when a widget or page is loaded more then once (use data-*-attach-point to access the nodes).
  • Removed some unnecessary attach-* attributes from templates.
  • Fixed some event handling.
Location:
Dev/branches/rest-dojo-ui/client/rft/ui/templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/rest-dojo-ui/client/rft/ui/templates/LoginDialog.html

    r288 r390  
    11<div class="dijitDialog" role="dialog" aria-labelledby="${id}_title">
    22    <div data-dojo-attach-point="titleBar" class="dijitDialogTitleBar">
    3         <span data-dojo-attach-point="titleNode" class="dijitDialogTitle" id="${id}_title"></span>
     3        <span data-dojo-attach-point="titleNode" class="dijitDialogTitle"></span>
    44        <span data-dojo-attach-point="closeButtonNode" class="dijitDialogCloseIcon" data-dojo-attach-event="ondijitclick: onCancel" title="${buttonCancel}" role="button" tabIndex="-1">
    55            <span data-dojo-attach-point="closeText" class="closeText" title="${buttonCancel}">x</span>
  • Dev/branches/rest-dojo-ui/client/rft/ui/templates/QuestionEditorToolkit.html

    r389 r390  
    22        <div data-dojo-type="dojox.widget.TitleGroup">
    33                <div data-dojo-type="dijit.TitlePane" class="orange" data-dojo-props="open:true" title="Properties" data-dojo-props="iconClass:'rftIcon rftIconProperties'">
    4             <div data-dojo-type="dijit.form.Form" data-dojo-attach-point="propertiesForm" data-rft-attach-event="onSubmit:onSave">
     4            <div data-dojo-type="dijit.form.Form" data-dojo-attach-point="propertiesForm">
    55                                <fieldset class="align">
    6                                         <label>Title:</label><input data-dojo-type="dijit.form.TextBox" data-dojo-attach-point="propertiesTitle" name="title"/>
    7                                         <label>Code:</label><input data-dojo-type="dijit.form.TextBox" data-dojo-attach-point="propertiesCode" name= "_id"/>
     6                                        <label>Title:</label><input data-dojo-type="dijit.form.TextBox" name="title"/>
     7                                        <label>Code:</label><input data-dojo-type="dijit.form.TextBox" name= "_id"/>
    88                                        <label>Categories:</label>
    99                                        <div data-dojo-attach-point="listNode" class="rftLineListView"></div>
    10                                         <select id="categoriesBox"></select>
    11                                         <button data-rft-attach-point="btnCategory" data-dojo-type="dijit.form.Button" data-dojo-attach-event="onClick:onCategoryAdd" data-dojo-props="baseClass:'rftBlockButton', class:'orange', iconClass: 'rftIcon rftIconPlus'">Add</button><br>
     10                                        <div data-dojo-attach-point="categoriesBoxNode"></div>
     11                                        <button data-dojo-type="dijit.form.Button" data-dojo-attach-event="onClick:onCategoryAdd" data-dojo-props="baseClass:'rftBlockButton', class:'orange', iconClass: 'rftIcon rftIconPlus'">Add</button><br>
    1212                                        <label>Topic:</label>
    13                                         <select id="topicBox"></select>
    14                                         <label>Description:</label><textarea data-dojo-type="dijit.form.TextBox" data-dojo-attach-point="propertiesDescription" name="description"></textarea>
     13                                        <div data-dojo-attach-point="topicBoxNode"></div>
     14                                        <label>Description:</label><textarea data-dojo-type="dijit.form.Textarea" name="description"></textarea>
    1515                                </fieldset>
    1616                        </div>
Note: See TracChangeset for help on using the changeset viewer.