Ignore:
Timestamp:
03/13/13 17:07:58 (12 years ago)
Author:
hendrikvanantwerpen
Message:

Added grunt tasks and code cleanup.

Added grunt for less and jshint procesing.
Cleanup of code to pass jshint (one bug found :).

Location:
Dev/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk

    • Property svn:ignore
      •  

        old new  
        11data
        22nbproject
         3node_modules
  • Dev/trunk/client

    • Property svn:externals
      •  

        old new  
        1 dojo http://svn.dojotoolkit.org/src/tags/release-1.8.0/dojo
        2 dijit http://svn.dojotoolkit.org/src/tags/release-1.8.0/dijit
        3 dojox http://svn.dojotoolkit.org/src/tags/release-1.8.0/dojox
        4 util http://svn.dojotoolkit.org/src/tags/release-1.8.0/util
         1dojo http://svn.dojotoolkit.org/src/tags/release-1.8.3/dojo
         2dijit http://svn.dojotoolkit.org/src/tags/release-1.8.3/dijit
         3dojox http://svn.dojotoolkit.org/src/tags/release-1.8.3/dojox
         4util http://svn.dojotoolkit.org/src/tags/release-1.8.3/util
  • Dev/trunk/client/qed/pages/question.js

    r420 r426  
    5454                Content.notify(err,'error');
    5555            });
    56             evt && event.stop( evt );
     56            if ( evt ) { event.stop( evt ); }
    5757            return false;
    5858        },
  • Dev/trunk/client/qed/pages/response.js

    r420 r426  
    6262            this._getAnswersAndSaveResponse();
    6363            this.content.domNode.innerHTML = "<div>Thanks for filling in the survey.</div>";
    64             e && event.stop(e);
     64            if ( e ) { event.stop(e); }
    6565            return false;
    6666        },
     
    6868            this._getAnswersAndSaveResponse();
    6969            this.content.domNode.innerHTML = "<div>To continue with this survey later, just save the URL in the location bar and revisit it later. Your answers will still be there.</div>";
    70             e && event.stop(e);
     70            if ( e ) { event.stop(e); }
    7171            return false;
    7272        },
    7373        _ignoreEvent: function(e) {
    74             e && event.stop(e);
     74            if ( e ) { event.stop(e); }
    7575            return false;
    7676        }
  • Dev/trunk/client/qed/pages/survey.js

    r420 r426  
    4343                itemActions: {
    4444                    "Info": {
    45                         callback: function(item){ item.description && alert(item.description); },
     45                        callback: function(item){
     46                            if ( item.description ) { alert(item.description); }
     47                        },
    4648                        icon: "Inspect",
    4749                        description: "Show item description"
  • Dev/trunk/client/qed/pages/surveys.js

    r422 r426  
    6868        refreshDrafts: function() {
    6969            this.draftsContainer.set('content','');
    70             when(store.query("_design/surveys/_view/drafts")
    71                     ,lang.hitch(this,function(surveys){
     70            when(store.query("_design/surveys/_view/drafts"),
     71                    lang.hitch(this,function(surveys) {
    7272                this.draftsTab.set('title','Drafts ('+surveys.length+')');
    7373                array.forEach(surveys,function(survey){
     
    110110        refreshPublished: function() {
    111111            this.publishedContainer.set('content','');
    112             when(store.query("_design/surveys/_view/published")
    113                     ,lang.hitch(this,function(surveys){
     112            when(store.query("_design/surveys/_view/published"),
     113                    lang.hitch(this, function(surveys) {
    114114                this.publishedTab.set('title','Published ('+surveys.length+')');
    115115                array.forEach(surveys,function(survey){
     
    138138        refreshRuns: function() {
    139139            this.runsContainer.set('content','');
    140             when(store.query("_design/default/_view/by_type",{key:'SurveyRun'})
    141                     ,lang.hitch(this,function(surveyRuns){
     140            when(store.query("_design/default/_view/by_type",{key:'SurveyRun'}),
     141                    lang.hitch(this,function(surveyRuns){
    142142                this.runsTab.set('title','Runs ('+surveyRuns.length+')');
    143143                array.forEach(surveyRuns,function(surveyRun){
Note: See TracChangeset for help on using the changeset viewer.