lib/js/TourSettingsView.js
function() {
      var t = this;
      t.$el.append(template.apply({}));
      t.dialog = t.$('.modal');

      // Build the tour tree view
      t.tv = new UI.TreeView({
        preFetch: true,
        monitorParams: {probeClass: 'ToursProbe'}
      });
      t.tv.render().appendTo(t.$('.nm-tsv-tree'));

      // Select the first tour once the tree is loaded
      t.tv.whenConnected(function(tree) {
        t.firstTour();
      });

      // Instantiate the new tour page view
      t.newTourPage = new UI.NewTourPage({tourSettings:t});
      t.newTourPage.render();
      UI.pageView.$el.append(t.newTourPage.$el);
    }
function() {
      var t = this;
      t.$el.append(template.apply({}));
      t.dialog = t.$('.modal');

      // Build the tour tree view
      t.tv = new UI.TreeView({
        preFetch: true,
        monitorParams: {probeClass: 'ToursProbe'}
      });
      t.tv.render().appendTo(t.$('.nm-tsv-tree'));

      // Select the first tour once the tree is loaded
      t.tv.whenConnected(function(tree) {
        t.firstTour();
      });

      // Instantiate the new tour page view
      t.newTourPage = new UI.NewTourPage({tourSettings:t});
      t.newTourPage.render();
      UI.pageView.$el.append(t.newTourPage.$el);
    }
function ( ) { var t = this ; t . $el . append ( template . apply ( { } ) ) ; t . dialog = t . $ ( '.modal' ) ; // Build the tour tree view t . tv = new UI . TreeView ( { preFetch : true , monitorParams : { probeClass : 'ToursProbe' } } ) ; t . tv . render ( ) . appendTo ( t . $ ( '.nm-tsv-tree' ) ) ; // Select the first tour once the tree is loaded t . tv . whenConnected ( function ( tree ) { t . firstTour ( ) ; } ) ; // Instantiate the new tour page view t . newTourPage = new UI . NewTourPage ( { tourSettings : t } ) ; t . newTourPage . render ( ) ; UI . pageView . $el . append ( t . newTourPage . $el ) ; }
This is called once after construction to render the components onto the screen.
This is called once after construction to render the components onto the screen .