lib/js/TourSettingsView.js
function() {
      var t = this;

      // Set the current tour pages
      t.pages = t.tour.get('pages');

      // Tour fields
      t.$('.nm-tsv-id').val(t.tour.get('id'));
      t.$('.nm-tsv-title').val(t.tour.get('title'));
      t.$('.nm-tsv-description').val(t.tour.get('description'));
      t.$('.nm-tsv-auto-next-sec').val(t.tour.get('autoNextSec'));
      var pageList = t.$('.nm-tsv-page-list').html('');

      // Tour pages
      var table = $('<table></table>').appendTo(pageList);

      for (var i = 0; i < t.pages.length; i++) {
        var page = t.pages[i];
        $('<tr><td>' + page['title'] + '</td><td class="nm-tsv-up" title="move up"><i class="icon-caret-up"></i></td><td class="nm-tsv-down" title="move down"><i class="icon-caret-down"></i></td><td class="nm-tsv-remove" title="remove page"><i class="icon-minus"></i></td></tr>').appendTo(table);
      }

      // Connect all tooltips
      UI.tooltip(t.$('*[title]'),{placement:'bottom'});

    }
function() {
      var t = this;

      // Set the current tour pages
      t.pages = t.tour.get('pages');

      // Tour fields
      t.$('.nm-tsv-id').val(t.tour.get('id'));
      t.$('.nm-tsv-title').val(t.tour.get('title'));
      t.$('.nm-tsv-description').val(t.tour.get('description'));
      t.$('.nm-tsv-auto-next-sec').val(t.tour.get('autoNextSec'));
      var pageList = t.$('.nm-tsv-page-list').html('');

      // Tour pages
      var table = $('<table></table>').appendTo(pageList);

      for (var i = 0; i < t.pages.length; i++) {
        var page = t.pages[i];
        $('<tr><td>' + page['title'] + '</td><td class="nm-tsv-up" title="move up"><i class="icon-caret-up"></i></td><td class="nm-tsv-down" title="move down"><i class="icon-caret-down"></i></td><td class="nm-tsv-remove" title="remove page"><i class="icon-minus"></i></td></tr>').appendTo(table);
      }

      // Connect all tooltips
      UI.tooltip(t.$('*[title]'),{placement:'bottom'});

    }
function ( ) { var t = this ; // Set the current tour pages t . pages = t . tour . get ( 'pages' ) ; // Tour fields t . $ ( '.nm-tsv-id' ) . val ( t . tour . get ( 'id' ) ) ; t . $ ( '.nm-tsv-title' ) . val ( t . tour . get ( 'title' ) ) ; t . $ ( '.nm-tsv-description' ) . val ( t . tour . get ( 'description' ) ) ; t . $ ( '.nm-tsv-auto-next-sec' ) . val ( t . tour . get ( 'autoNextSec' ) ) ; var pageList = t . $ ( '.nm-tsv-page-list' ) . html ( '' ) ; // Tour pages var table = $ ( '<table></table>' ) . appendTo ( pageList ) ; for ( var i = 0 ; i < t . pages . length ; i ++ ) { var page = t . pages [ i ] ; $ ( '<tr><td>' + page [ 'title' ] + '</td><td class="nm-tsv-up" title="move up"><i class="icon-caret-up"></i></td><td class="nm-tsv-down" title="move down"><i class="icon-caret-down"></i></td><td class="nm-tsv-remove" title="remove page"><i class="icon-minus"></i></td></tr>' ) . appendTo ( table ) ; } // Connect all tooltips UI . tooltip ( t . $ ( '*[title]' ) , { placement : 'bottom' } ) ; }
Send data to the form
Send data to the form