Skip to content

Commit

Permalink
Update "Add Recommended Shows"
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkykh committed May 29, 2018
1 parent 77be380 commit 35dcf9d
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 26 deletions.
2 changes: 1 addition & 1 deletion themes-default/slim/static/js/add-shows/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ MEDUSA.addShows.init = function() {
});
});

$('#rootDirs').on('change', () => {
$(document.body).on('change', '#rootDirs', () => {
$.rootDirCheck();
});

Expand Down
9 changes: 4 additions & 5 deletions themes-default/slim/views/addShows_recommended.mako
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<%inherit file="/layouts/main.mako"/>
<%!
from medusa import app
%>
<%block name="scripts">
% if enable_anime_options:
<script type="text/javascript" src="js/blackwhite.js?${sbPID}"></script>
Expand All @@ -12,7 +9,9 @@ const startVue = () => {
window.app = new Vue({
el: '#vue-wrap',
data() {
return {};
return {
rootDirs: []
};
}
});
};
Expand Down Expand Up @@ -50,7 +49,7 @@ const startVue = () => {
<li><app-link href="addShows/${realpage + '/'}#tabs-2">Customize Options</app-link></li>
</ul>
<div id="tabs-1" class="existingtabs">
<%include file="/inc_rootDirs.mako"/>
<root-dirs @update:root-dirs="rootDirs = $event"></root-dirs>
<br/>
</div>
<div id="tabs-2" class="existingtabs">
Expand Down
6 changes: 4 additions & 2 deletions themes-default/slim/views/addShows_trendingShows.mako
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ const startVue = () => {
window.app = new Vue({
el: '#vue-wrap',
data() {
return {};
return {
rootDirs: []
};
}
});
};
Expand Down Expand Up @@ -50,7 +52,7 @@ const startVue = () => {
<li><app-link id="trakt-tab-2" href="addShows/${realpage + '/'}?traktList=${traktList}#tabs-2">Customize Options</app-link></li>
</ul>
<div id="tabs-1" class="existingtabs">
<%include file="/inc_rootDirs.mako"/>
<root-dirs @update:root-dirs="rootDirs = $event"></root-dirs>
<br/>
</div>
<div id="tabs-2" class="existingtabs">
Expand Down
2 changes: 1 addition & 1 deletion themes/dark/assets/js/add-shows/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ MEDUSA.addShows.init = function() {
});
});

$('#rootDirs').on('change', () => {
$(document.body).on('change', '#rootDirs', () => {
$.rootDirCheck();
});

Expand Down
2 changes: 1 addition & 1 deletion themes/dark/assets/js/add-shows/init.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions themes/dark/templates/addShows_recommended.mako
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<%inherit file="/layouts/main.mako"/>
<%!
from medusa import app
%>
<%block name="scripts">
% if enable_anime_options:
<script type="text/javascript" src="js/blackwhite.js?${sbPID}"></script>
Expand All @@ -12,7 +9,9 @@ const startVue = () => {
window.app = new Vue({
el: '#vue-wrap',
data() {
return {};
return {
rootDirs: []
};
}
});
};
Expand Down Expand Up @@ -50,7 +49,7 @@ const startVue = () => {
<li><app-link href="addShows/${realpage + '/'}#tabs-2">Customize Options</app-link></li>
</ul>
<div id="tabs-1" class="existingtabs">
<%include file="/inc_rootDirs.mako"/>
<root-dirs @update:root-dirs="rootDirs = $event"></root-dirs>
<br/>
</div>
<div id="tabs-2" class="existingtabs">
Expand Down
6 changes: 4 additions & 2 deletions themes/dark/templates/addShows_trendingShows.mako
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ const startVue = () => {
window.app = new Vue({
el: '#vue-wrap',
data() {
return {};
return {
rootDirs: []
};
}
});
};
Expand Down Expand Up @@ -50,7 +52,7 @@ const startVue = () => {
<li><app-link id="trakt-tab-2" href="addShows/${realpage + '/'}?traktList=${traktList}#tabs-2">Customize Options</app-link></li>
</ul>
<div id="tabs-1" class="existingtabs">
<%include file="/inc_rootDirs.mako"/>
<root-dirs @update:root-dirs="rootDirs = $event"></root-dirs>
<br/>
</div>
<div id="tabs-2" class="existingtabs">
Expand Down
2 changes: 1 addition & 1 deletion themes/light/assets/js/add-shows/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ MEDUSA.addShows.init = function() {
});
});

$('#rootDirs').on('change', () => {
$(document.body).on('change', '#rootDirs', () => {
$.rootDirCheck();
});

Expand Down
Loading

0 comments on commit 35dcf9d

Please sign in to comment.