Преглед изворни кода

HUE-6198 [editor] The result spotlight shouldn't leak on the other pages

Enrico Berti пре 8 година
родитељ
комит
23611a5

+ 4 - 0
desktop/core/src/desktop/static/desktop/js/jquery.huedatatable.js

@@ -184,6 +184,10 @@
         });
 
         search.find('input').focus();
+
+        huePubSub.subscribe('hue.datatable.search.hide', function () {
+          $('.hue-datatable-search').hide();
+        });
       }
       else {
         $('.hue-datatable-search').show();

+ 1 - 0
desktop/core/src/desktop/templates/hue.mako

@@ -624,6 +624,7 @@ ${ smart_unicode(login_modal(request).content) | n,unicode }
             window.pauseAppIntervals(loadedApp);
             huePubSub.pauseAppSubscribers(loadedApp);
           });
+          huePubSub.publish('hue.datatable.search.hide');
           huePubSub.publish('nicescroll.resize');
           if (typeof self.embeddable_cache[app] === 'undefined') {
             if (loadedApps.indexOf(app) == -1){