Ignore:
Timestamp:
07/09/12 19:24:56 (13 years ago)
Author:
tjcschipper
Message:
  • Made change to _Page.js to destroy the page's child widgets on page leave. This was causing widgets with identical names (such as "btnSave") to make regsitry throw a duplicate widget error.
  • survey.js/html now sorts loaded questions into categories and topics and creates or adds them to the proper TabPane/Selectors?. TODO: Allow for spaces in category titles.
  • Added "addQuestion()" method to Selector.js, to internalize question visualization logic.
  • Included surveyAdvanced page in run.js
  • Changes index to use proper button format, still need to figure out a way to bind content.goTo to the onclick field (since there is no index.js script being run!)
  • Various css tweaks.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/rest-dojo-ui/client/rft/ui/_Page.js

    r292 r354  
    3535            onVisit: function(){},
    3636            /** Event fired before leaving the page. Return false to prevent */
    37             onLeave: function(){}
     37            onLeave: function(){
     38                dijit.findWidgets(this.domNode).forEach(function(w){
     39                    w.destroyRecursive(false);
     40                });
     41            }
    3842        });
    3943    });
Note: See TracChangeset for help on using the changeset viewer.