Enter on add root folder will add folder
Renamed Root Folder js files
This commit is contained in:
parent
0247aebb25
commit
dff6726114
|
@ -4,11 +4,11 @@ define(
|
||||||
'vent',
|
'vent',
|
||||||
'AppLayout',
|
'AppLayout',
|
||||||
'marionette',
|
'marionette',
|
||||||
'AddSeries/RootFolders/Layout',
|
'AddSeries/RootFolders/RootFolderLayout',
|
||||||
'AddSeries/Existing/AddExistingSeriesCollectionView',
|
'AddSeries/Existing/AddExistingSeriesCollectionView',
|
||||||
'AddSeries/AddSeriesView',
|
'AddSeries/AddSeriesView',
|
||||||
'Quality/QualityProfileCollection',
|
'Quality/QualityProfileCollection',
|
||||||
'AddSeries/RootFolders/Collection',
|
'AddSeries/RootFolders/RootFolderCollection',
|
||||||
'Series/SeriesCollection'
|
'Series/SeriesCollection'
|
||||||
], function (vent,
|
], function (vent,
|
||||||
AppLayout,
|
AppLayout,
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
define(
|
define(
|
||||||
[
|
[
|
||||||
'backbone',
|
'backbone',
|
||||||
'AddSeries/RootFolders/Model',
|
'AddSeries/RootFolders/RootFolderModel',
|
||||||
'Mixins/backbone.signalr.mixin'
|
'Mixins/backbone.signalr.mixin'
|
||||||
], function (Backbone, RootFolderModel) {
|
], function (Backbone, RootFolderModel) {
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
define(
|
define(
|
||||||
[
|
[
|
||||||
'marionette',
|
'marionette',
|
||||||
'AddSeries/RootFolders/ItemView'
|
'AddSeries/RootFolders/RootFolderItemView'
|
||||||
], function (Marionette, RootFolderItemView) {
|
], function (Marionette, RootFolderItemView) {
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ define(
|
||||||
|
|
||||||
return Marionette.ItemView.extend({
|
return Marionette.ItemView.extend({
|
||||||
|
|
||||||
template: 'AddSeries/RootFolders/ItemViewTemplate',
|
template: 'AddSeries/RootFolders/RootFolderItemViewTemplate',
|
||||||
tagName : 'tr',
|
tagName : 'tr',
|
||||||
|
|
||||||
initialize: function () {
|
initialize: function () {
|
|
@ -3,16 +3,16 @@
|
||||||
define(
|
define(
|
||||||
[
|
[
|
||||||
'marionette',
|
'marionette',
|
||||||
'AddSeries/RootFolders/CollectionView',
|
'AddSeries/RootFolders/RootFolderCollectionView',
|
||||||
'AddSeries/RootFolders/Collection',
|
'AddSeries/RootFolders/RootFolderCollection',
|
||||||
'AddSeries/RootFolders/Model',
|
'AddSeries/RootFolders/RootFolderModel',
|
||||||
'Shared/LoadingView',
|
'Shared/LoadingView',
|
||||||
'Mixins/AsValidatedView',
|
'Mixins/AsValidatedView',
|
||||||
'Mixins/AutoComplete'
|
'Mixins/AutoComplete'
|
||||||
], function (Marionette, RootFolderCollectionView, RootFolderCollection, RootFolderModel, LoadingView, AsValidatedView) {
|
], function (Marionette, RootFolderCollectionView, RootFolderCollection, RootFolderModel, LoadingView, AsValidatedView) {
|
||||||
|
|
||||||
var layout = Marionette.Layout.extend({
|
var layout = Marionette.Layout.extend({
|
||||||
template: 'AddSeries/RootFolders/LayoutTemplate',
|
template: 'AddSeries/RootFolders/RootFolderLayoutTemplate',
|
||||||
|
|
||||||
ui: {
|
ui: {
|
||||||
pathInput: '.x-path input'
|
pathInput: '.x-path input'
|
||||||
|
@ -23,7 +23,8 @@ define(
|
||||||
},
|
},
|
||||||
|
|
||||||
events: {
|
events: {
|
||||||
'click .x-add': '_addFolder'
|
'click .x-add': '_addFolder',
|
||||||
|
'keydown .x-path input': '_keydown'
|
||||||
},
|
},
|
||||||
|
|
||||||
initialize: function () {
|
initialize: function () {
|
||||||
|
@ -65,6 +66,14 @@ define(
|
||||||
|
|
||||||
_showCurrentDirs: function () {
|
_showCurrentDirs: function () {
|
||||||
this.currentDirs.show(this.rootfolderListView);
|
this.currentDirs.show(this.rootfolderListView);
|
||||||
|
},
|
||||||
|
|
||||||
|
_keydown: function (e) {
|
||||||
|
if (e.keyCode !== 13) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
this._addFolder();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -6,8 +6,8 @@ define(
|
||||||
'underscore',
|
'underscore',
|
||||||
'marionette',
|
'marionette',
|
||||||
'Quality/QualityProfileCollection',
|
'Quality/QualityProfileCollection',
|
||||||
'AddSeries/RootFolders/Collection',
|
'AddSeries/RootFolders/RootFolderCollection',
|
||||||
'AddSeries/RootFolders/Layout',
|
'AddSeries/RootFolders/RootFolderLayout',
|
||||||
'Series/SeriesCollection',
|
'Series/SeriesCollection',
|
||||||
'Config',
|
'Config',
|
||||||
'Shared/Messenger',
|
'Shared/Messenger',
|
||||||
|
|
|
@ -7,9 +7,9 @@ define(
|
||||||
'vent',
|
'vent',
|
||||||
'Series/SeriesCollection',
|
'Series/SeriesCollection',
|
||||||
'Quality/QualityProfileCollection',
|
'Quality/QualityProfileCollection',
|
||||||
'AddSeries/RootFolders/Collection',
|
'AddSeries/RootFolders/RootFolderCollection',
|
||||||
'Shared/Toolbar/ToolbarLayout',
|
'Shared/Toolbar/ToolbarLayout',
|
||||||
'AddSeries/RootFolders/Layout',
|
'AddSeries/RootFolders/RootFolderLayout',
|
||||||
'Config'
|
'Config'
|
||||||
], function (_,
|
], function (_,
|
||||||
Marionette,
|
Marionette,
|
||||||
|
|
Loading…
Reference in New Issue