From 7f59062215adead244e71df51ccfbb8c261f9329 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Thu, 27 Jun 2013 17:00:55 -0700 Subject: [PATCH] Prettier root folder --- UI/AddSeries/AddSeriesLayout.js | 2 +- UI/AddSeries/RootFolders/Layout.js | 5 ++--- UI/AddSeries/RootFolders/LayoutTemplate.html | 6 +++--- UI/AddSeries/RootFolders/RootFolderItemTemplate.html | 6 +++--- UI/AddSeries/addSeries.less | 4 ++++ 5 files changed, 13 insertions(+), 10 deletions(-) diff --git a/UI/AddSeries/AddSeriesLayout.js b/UI/AddSeries/AddSeriesLayout.js index 9ca71b510..a15bec513 100644 --- a/UI/AddSeries/AddSeriesLayout.js +++ b/UI/AddSeries/AddSeriesLayout.js @@ -11,7 +11,7 @@ define( ], function (App, Marionette, RootFolderLayout, ExistingSeriesCollectionView, AddSeriesView, qualityProfileCollection, rootFolderCollection) { return Marionette.Layout.extend({ - template: 'AddSeries/addSeriesLayoutTemplate', + template: 'AddSeries/AddSeriesLayoutTemplate', regions: { workspace: '#add-series-workspace' diff --git a/UI/AddSeries/RootFolders/Layout.js b/UI/AddSeries/RootFolders/Layout.js index 210fe5019..0e76a39b0 100644 --- a/UI/AddSeries/RootFolders/Layout.js +++ b/UI/AddSeries/RootFolders/Layout.js @@ -21,7 +21,7 @@ define( }, events: { - 'click .x-add': 'addFolder' + 'click .x-add': '_addFolder' }, initialize: function () { @@ -30,7 +30,6 @@ define( this.rootfolderListView.on('itemview:folderSelected', this._onFolderSelected, this); }, - onRender: function () { this.currentDirs.show(this.rootfolderListView); @@ -41,7 +40,7 @@ define( this.trigger('folderSelected', options); }, - addFolder: function () { + _addFolder: function () { var newDir = new RootFolderModel({ Path: this.ui.pathInput.val() }); diff --git a/UI/AddSeries/RootFolders/LayoutTemplate.html b/UI/AddSeries/RootFolders/LayoutTemplate.html index d1bf59723..fc387d9df 100644 --- a/UI/AddSeries/RootFolders/LayoutTemplate.html +++ b/UI/AddSeries/RootFolders/LayoutTemplate.html @@ -4,9 +4,9 @@