diff --git a/couchpotato/core/media/movie/_base/static/details.js b/couchpotato/core/media/movie/_base/static/details.js index a53f3b0..b7d7782 100644 --- a/couchpotato/core/media/movie/_base/static/details.js +++ b/couchpotato/core/media/movie/_base/static/details.js @@ -96,7 +96,7 @@ var MovieDetails = new Class({ var ended = function() { self.el.dispose(); self.el.removeEventListener('transitionend', ended); - } + }; self.el.addEventListener('transitionend', ended, false); // animate out diff --git a/couchpotato/core/media/movie/_base/static/movie.actions.js b/couchpotato/core/media/movie/_base/static/movie.actions.js index e8e167d..35736c4 100644 --- a/couchpotato/core/media/movie/_base/static/movie.actions.js +++ b/couchpotato/core/media/movie/_base/static/movie.actions.js @@ -775,38 +775,33 @@ MA.Refresh = new Class({ MA.Add = new Class({ Extends: MovieAction, + label: 'Add', create: function() { var self = this; - self.button = self.createButton(); - self.detail_button = self.createButton(); - - }, - - createButton: function(){ - var self = this; - return new Element('a.add', { + self.button = new Element('a.add', { 'text': 'Add', 'title': 'Re-add the movie and mark all previous snatched/downloaded as ignored', 'events': { - 'click': self.doAdd.bind(self) + 'click': function(){ + self.movie.openDetails(); + } } }); }, - doAdd: function(e){ + getDetails: function(){ var self = this; - (e).preventDefault(); - var m = new BlockSearchMovieItem(movie, { + var m = new BlockSearchMovieItem(self.movie.data.info, { 'onAdded': function(){ - //self.afterAdded(m, movie); } }); +m.showOptions(); - p(m); + return m; } }); diff --git a/couchpotato/core/media/movie/_base/static/movie.scss b/couchpotato/core/media/movie/_base/static/movie.scss index 4ff2f03..1c75320 100644 --- a/couchpotato/core/media/movie/_base/static/movie.scss +++ b/couchpotato/core/media/movie/_base/static/movie.scss @@ -551,6 +551,38 @@ } } + .section_add { + background: $theme_off; + + .options > div { + display: flex; + + select { + vertical-align: middle; + display: inline-block; + margin-right: 10px; + min-width: 70px; + flex: 1 auto; + + @include media-phablet { + min-width: 0; + } + } + + .button { + background: #FFF; + flex: 1 auto; + vertical-align: middle; + display: inline-block; + text-align: center; + } + + } + .thumbnail, .data { + display: none; + } + } + .releases { .buttons { diff --git a/couchpotato/static/scripts/library/question.js b/couchpotato/static/scripts/library/question.js index 926ed5f..c90d865 100644 --- a/couchpotato/static/scripts/library/question.js +++ b/couchpotato/static/scripts/library/question.js @@ -64,7 +64,7 @@ var Question = new Class( { var ended = function() { self.container.dispose(); self.container.removeEventListener('transitionend', ended); - } + }; self.container.addEventListener('transitionend', ended, false); // animate out diff --git a/couchpotato/static/style/main.scss b/couchpotato/static/style/main.scss index 32009dc..9cca397 100644 --- a/couchpotato/static/style/main.scss +++ b/couchpotato/static/style/main.scss @@ -64,7 +64,7 @@ input, textarea, select { @include media-phablet { width: $header_width_mobile; min-width: $header_width_mobile; - z-index: 1; + z-index: 21; } a {