Browse Source

HUE-6077 [frontend] Fix dropdown hover colors

Johan Ahlen 8 years ago
parent
commit
3475be0

+ 4 - 4
desktop/core/src/desktop/templates/common_notebook_ko_components.mako

@@ -181,24 +181,24 @@ except ImportError, e:
       </a>
       </a>
       <ul class="dropdown-menu less-padding">
       <ul class="dropdown-menu less-padding">
         <li>
         <li>
-          <a class="inactive-action download" href="javascript:void(0)" data-bind="click: downloadCsv, event: { mouseover: function(){ window.onbeforeunload = null; }, mouseout: function() { window.onbeforeunload = $(window).data('beforeunload'); } }" title="${ _('Download first %s rows as CSV') % DOWNLOAD_ROW_LIMIT.get() }">
+          <a class="download" href="javascript:void(0)" data-bind="click: downloadCsv, event: { mouseover: function(){ window.onbeforeunload = null; }, mouseout: function() { window.onbeforeunload = $(window).data('beforeunload'); } }" title="${ _('Download first %s rows as CSV') % DOWNLOAD_ROW_LIMIT.get() }">
             <i class="fa fa-fw fa-file-o"></i> ${ _('CSV') }
             <i class="fa fa-fw fa-file-o"></i> ${ _('CSV') }
           </a>
           </a>
         </li>
         </li>
         <li>
         <li>
-          <a class="inactive-action download" href="javascript:void(0)" data-bind="click: downloadXls, event: { mouseover: function(){ window.onbeforeunload = null; }, mouseout: function() { window.onbeforeunload = $(window).data('beforeunload'); } }" title="${ _('Download first %s rows as XLS') % DOWNLOAD_ROW_LIMIT.get() }">
+          <a class="download" href="javascript:void(0)" data-bind="click: downloadXls, event: { mouseover: function(){ window.onbeforeunload = null; }, mouseout: function() { window.onbeforeunload = $(window).data('beforeunload'); } }" title="${ _('Download first %s rows as XLS') % DOWNLOAD_ROW_LIMIT.get() }">
             <i class="fa fa-fw fa-file-excel-o"></i> ${ _('Excel') }
             <i class="fa fa-fw fa-file-excel-o"></i> ${ _('Excel') }
           </a>
           </a>
         </li>
         </li>
         % if hasattr(ENABLE_NEW_INDEXER, 'get') and ENABLE_NEW_INDEXER.get():
         % if hasattr(ENABLE_NEW_INDEXER, 'get') and ENABLE_NEW_INDEXER.get():
         <li>
         <li>
-          <a class="inactive-action download" href="javascript:void(0)" data-bind="click: function() { saveTarget('search-index'); savePath('__hue__'); trySaveResults(); }" title="${ _('Explore result in a dashboard') }">
+          <a class="download" href="javascript:void(0)" data-bind="click: function() { saveTarget('search-index'); savePath('__hue__'); trySaveResults(); }" title="${ _('Explore result in a dashboard') }">
             <i class="fa fa-fw fa-area-chart"></i> ${ _('Dashboard') }
             <i class="fa fa-fw fa-area-chart"></i> ${ _('Dashboard') }
           </a>
           </a>
         </li>
         </li>
         % endif
         % endif
         <li>
         <li>
-          <a class="inactive-action download" href="javascript:void(0)" data-bind="click: function() { $('#saveResultsModal').modal('show'); }" title="${ _('Save the result in a file, a new table...') }">
+          <a class="download" href="javascript:void(0)" data-bind="click: function() { $('#saveResultsModal').modal('show'); }" title="${ _('Save the result in a file, a new table...') }">
             <i class="fa fa-fw fa-save"></i> ${ _('Save') }
             <i class="fa fa-fw fa-save"></i> ${ _('Save') }
           </a>
           </a>
         </li>
         </li>

+ 4 - 4
desktop/libs/dashboard/src/dashboard/templates/common_search.mako

@@ -1480,22 +1480,22 @@ ${ dashboard.layout_skeleton() }
             </a>
             </a>
             <ul class="dropdown-menu">
             <ul class="dropdown-menu">
               <li>
               <li>
-                <a class="inactive-action download" href="javascript:void(0)" data-bind="click: function(widget, event){ var $f = $(event.currentTarget).parents('form'); $f.find('[name=\'type\']').val('csv'); $f.submit()}" title="${ _('Download first rows as JSON') }">
+                <a class="download" href="javascript:void(0)" data-bind="click: function(widget, event){ var $f = $(event.currentTarget).parents('form'); $f.find('[name=\'type\']').val('csv'); $f.submit()}" title="${ _('Download first rows as JSON') }">
                   <i class="hfo hfo-file-csv"></i> CSV
                   <i class="hfo hfo-file-csv"></i> CSV
                 </a>
                 </a>
               </li>
               </li>
               <li>
               <li>
-                <a class="inactive-action download" href="javascript:void(0)" data-bind="click: function(widget, event){ var $f = $(event.currentTarget).parents('form'); $f.find('[name=\'type\']').val('xls'); $f.submit()}" title="${ _('Download first rows as XLS') }">
+                <a class="download" href="javascript:void(0)" data-bind="click: function(widget, event){ var $f = $(event.currentTarget).parents('form'); $f.find('[name=\'type\']').val('xls'); $f.submit()}" title="${ _('Download first rows as XLS') }">
                   <i class="hfo hfo-file-xls"></i> Excel
                   <i class="hfo hfo-file-xls"></i> Excel
                 </a>
                 </a>
               </li>
               </li>
               <li>
               <li>
-                <a class="inactive-action download" href="javascript:void(0)" data-bind="click: function(widget, event){ var $f = $(event.currentTarget).parents('form'); $f.find('[name=\'type\']').val('json'); $f.submit()}" title="${ _('Download first rows as JSON') }">
+                <a class="download" href="javascript:void(0)" data-bind="click: function(widget, event){ var $f = $(event.currentTarget).parents('form'); $f.find('[name=\'type\']').val('json'); $f.submit()}" title="${ _('Download first rows as JSON') }">
                   <i class="hfo hfo-file-json"></i> JSON
                   <i class="hfo hfo-file-json"></i> JSON
                 </a>
                 </a>
               </li>
               </li>
               ##<li>
               ##<li>
-                ##<a class="inactive-action download" href="javascript:void(0)" data-bind="click: function(widget, event){ var $f = $(event.currentTarget).parents('form'); $f.find('[name=\'type\']').val('json'); $f.submit()}" title="${ _('Export results to a dataset') }">
+                ##<a class="download" href="javascript:void(0)" data-bind="click: function(widget, event){ var $f = $(event.currentTarget).parents('form'); $f.find('[name=\'type\']').val('json'); $f.submit()}" title="${ _('Export results to a dataset') }">
                 ##  <i class="fa fa-w fa-save"></i> ${_('Export')}
                 ##  <i class="fa fa-w fa-save"></i> ${_('Export')}
                 ##</a>
                 ##</a>
               ##</li>
               ##</li>