diff --git a/UI/AddSeries/AddSeriesView.js b/UI/AddSeries/AddSeriesView.js index 4372eadd1..c21602aed 100644 --- a/UI/AddSeries/AddSeriesView.js +++ b/UI/AddSeries/AddSeriesView.js @@ -1,4 +1,4 @@ -'use strict'; +'use strict'; define( [ 'marionette', diff --git a/UI/AddSeries/Existing/CompositeView.js b/UI/AddSeries/Existing/CompositeView.js index cd1a55ecb..600e5f21d 100644 --- a/UI/AddSeries/Existing/CompositeView.js +++ b/UI/AddSeries/Existing/CompositeView.js @@ -49,8 +49,8 @@ define( this.searchCollection = new AddSeriesCollection(); this.searchCollection.fetch({ - data : { term: this.ui.searchText.val() }, - success: function () { + data: { term: this.ui.searchText.val() } + }).done(function () { icon.removeClass('icon-spin icon-spinner disabled').addClass('icon-search'); deferred.resolve(); self.collection.add(self.searchCollection.shift()); @@ -59,12 +59,10 @@ define( self._showAll(); } - }, - fail : function () { + }).fail(function () { icon.removeClass('icon-spin icon-spinner disabled').addClass('icon-search'); deferred.reject(); - } - }); + }); return deferred.promise(); }, diff --git a/UI/AddSeries/SearchResultView.js b/UI/AddSeries/SearchResultView.js index a5415f9de..ee19912c0 100644 --- a/UI/AddSeries/SearchResultView.js +++ b/UI/AddSeries/SearchResultView.js @@ -73,9 +73,11 @@ define( var self = this; - this.model.save(undefined, { - url : SeriesCollection.prototype.url, - success: function () { + SeriesCollection.add(this.model); + + + this.model.save() + .done(function () { self.close(); icon.removeClass('icon-spin icon-spinner disabled').addClass('icon-search'); Messenger.show({ @@ -83,12 +85,10 @@ define( }); App.vent.trigger(App.Events.SeriesAdded, { series: self.model }); - self.model.collection.remove(self.model); - }, - fail : function () { + }) + .fail(function () { icon.removeClass('icon-spin icon-spinner disabled').addClass('icon-search'); - } - }); + }); }, serializeData: function () { diff --git a/UI/Content/icons.less b/UI/Content/icons.less index 82dd713df..858fdb150 100644 --- a/UI/Content/icons.less +++ b/UI/Content/icons.less @@ -3,46 +3,46 @@ /* Icon rotations and mirroring */ .icon-rotate-90() { - -webkit-transform: rotate(90deg); - -moz-transform: rotate(90deg); - -ms-transform: rotate(90deg); - -o-transform: rotate(90deg); - transform: rotate(90deg); - filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1); + -webkit-transform : rotate(90deg); + -moz-transform : rotate(90deg); + -ms-transform : rotate(90deg); + -o-transform : rotate(90deg); + transform : rotate(90deg); + filter : progid:DXImageTransform.Microsoft.BasicImage(rotation=1); } .icon-rotate-180() { - -webkit-transform: rotate(180deg); - -moz-transform: rotate(180deg); - -ms-transform: rotate(180deg); - -o-transform: rotate(180deg); - transform: rotate(180deg); - filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2); + -webkit-transform : rotate(180deg); + -moz-transform : rotate(180deg); + -ms-transform : rotate(180deg); + -o-transform : rotate(180deg); + transform : rotate(180deg); + filter : progid:DXImageTransform.Microsoft.BasicImage(rotation=2); } .icon-rotate-270() { - -webkit-transform: rotate(270deg); - -moz-transform: rotate(270deg); - -ms-transform: rotate(270deg); - -o-transform: rotate(270deg); - transform: rotate(270deg); - filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); + -webkit-transform : rotate(270deg); + -moz-transform : rotate(270deg); + -ms-transform : rotate(270deg); + -o-transform : rotate(270deg); + transform : rotate(270deg); + filter : progid:DXImageTransform.Microsoft.BasicImage(rotation=3); } .icon-flip-horizontal() { - -webkit-transform: scale(-1, 1); - -moz-transform: scale(-1, 1); - -ms-transform: scale(-1, 1); - -o-transform: scale(-1, 1); - transform: scale(-1, 1); + -webkit-transform : scale(-1, 1); + -moz-transform : scale(-1, 1); + -ms-transform : scale(-1, 1); + -o-transform : scale(-1, 1); + transform : scale(-1, 1); } .icon-flip-vertical() { - -webkit-transform: scale(1, -1); - -moz-transform: scale(1, -1); - -ms-transform: scale(1, -1); - -o-transform: scale(1, -1); - transform: scale(1, -1); + -webkit-transform : scale(1, -1); + -moz-transform : scale(1, -1); + -ms-transform : scale(1, -1); + -o-transform : scale(1, -1); + transform : scale(1, -1); } .icon-nd-edit:before { @@ -51,5 +51,9 @@ .icon-nd-delete:before { .icon(@remove); - color: @errorText; -} \ No newline at end of file + color : @errorText; +} + +.icon-nd-add:before { + .icon(@plus); +} diff --git a/UI/Controller.js b/UI/Controller.js index cdee651c1..8c2a7b783 100644 --- a/UI/Controller.js +++ b/UI/Controller.js @@ -1,4 +1,4 @@ -'use strict'; +'use strict'; define( [ 'app', diff --git a/UI/Series/Index/EmptyTemplate.html b/UI/Series/Index/EmptyTemplate.html index 5c92c88f2..95b3d1f2e 100644 --- a/UI/Series/Index/EmptyTemplate.html +++ b/UI/Series/Index/EmptyTemplate.html @@ -1,4 +1,12 @@ -