diff --git a/CHANGES.md b/CHANGES.md
index 349ddc2..e1298f6 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -31,6 +31,7 @@
* Change Show List text "Search Show Name" to "Filter Show Name", and "Reset Search" to "Reset Filter" for clarity
* Change when getting a non existing folder, add the failed location to log messages
* Change add pulsing effect to warning indicators
+* Add show search ability to menu Shows/"Add show"
[develop changelog]
diff --git a/gui/slick/css/style.css b/gui/slick/css/style.css
index feb4757..700fb2a 100644
--- a/gui/slick/css/style.css
+++ b/gui/slick/css/style.css
@@ -688,6 +688,18 @@ inc_top.tmpl
background-position:-337px 0
}
+#add-show-name:hover{
+ cursor:pointer
+}
+
+#add-show-name input{
+ margin:0 0 0 -1px;
+ padding:0 2px;
+ height:18px;
+ width:135px;
+ font-size:12px
+}
+
/* =======================================================================
inc_bottom.tmpl
========================================================================== */
diff --git a/gui/slick/interfaces/default/inc_top.tmpl b/gui/slick/interfaces/default/inc_top.tmpl
index 81144d9..d42c474 100644
--- a/gui/slick/interfaces/default/inc_top.tmpl
+++ b/gui/slick/interfaces/default/inc_top.tmpl
@@ -133,7 +133,8 @@
History $history_home
- Search
+
+
Trakt Cards
diff --git a/gui/slick/js/inc_top.js b/gui/slick/js/inc_top.js
index 484d5c1..9c81db3 100644
--- a/gui/slick/js/inc_top.js
+++ b/gui/slick/js/inc_top.js
@@ -37,7 +37,7 @@ function initActions() {
// menu$.find('a:contains("Update show in XBMC")').addClass('btn').html('Update show in XBMC');
}
-$(document).ready(function(){
+$(function(){
initActions();
$('#NAV' + topmenu).addClass('active');
$('.dropdown-toggle').dropdownHover();
@@ -55,4 +55,24 @@ $(document).ready(function(){
doLast && $('.bubble').last().addClass('last');
return !1;
});
+
+ var search = function(){
+ var link$ = $('#add-show-name'), text = link$.find('input').val(),
+ param = '?show_to_add=|||' + text + '&use_show_name=True';
+ window.location.href = link$.attr('data-href') + (!text.length ? '' : param);
+ }, removeHref = function(){$('#add-show-name').removeAttr('href');};
+ $('#add-show-name')
+ .on('click', function(){ search(); })
+ .hover(function() {$(this).attr('href', $(this).attr('data-href'));}, removeHref);
+ $('#add-show-name input')
+ .hover(removeHref)
+ .on('click', function(e){ e.stopPropagation(); })
+ .keydown(function(e){
+ if (13 === e.keyCode) {
+ e.stopPropagation();
+ e.preventDefault();
+ search();
+ return !1;
+ }
+ });
});