ui: added search icon and spinner when search is performing.
marcink -
r4095:e030f9fa default
Not Reviewed
Show More
Add another comment
TODOs: 0 unresolved 0 Resolved
COMMENTS: 0 General 0 Inline
@@ -754,7 +754,10
754 background-color: @black !important;
754 background-color: @black !important;
755 margin-right: 0;
755 margin-right: 0;
756 }
756 }
757
757 .searchTagIcon {
758 margin: 0;
759 background: @black !important;
760 }
758 .searchTagHelp {
761 .searchTagHelp {
759 background-color: @grey1 !important;
762 background-color: @grey1 !important;
760 margin: 0;
763 margin: 0;
@@ -708,6 +708,10
708 <div class="main_filter_input_box">
708 <div class="main_filter_input_box">
709 <ul class="searchItems">
709 <ul class="searchItems">
710
710
711 <li class="searchTag searchTagIcon">
712 <i class="icon-search"></i>
713 </li>
714
711 % if c.template_context['search_context']['repo_id']:
715 % if c.template_context['search_context']['repo_id']:
712 <li class="searchTag searchTagFilter searchTagHidable" >
716 <li class="searchTag searchTagFilter searchTagHidable" >
713 ##<a href="${h.route_path('search_repo',repo_name=c.template_context['search_context']['repo_name'])}">
717 ##<a href="${h.route_path('search_repo',repo_name=c.template_context['search_context']['repo_name'])}">
@@ -1026,7 +1030,13
1026 alert("Error during search.\nError code: {0}".format(textStatus));
1030 alert("Error during search.\nError code: {0}".format(textStatus));
1027 window.location = '';
1031 window.location = '';
1028 }
1032 }
1029 }
1033 },
1034 onSearchStart: function (params) {
1035 $('.searchTag.searchTagIcon').html('<i class="icon-spin animate-spin"></i>')
1036 },
1037 onSearchComplete: function (query, suggestions) {
1038 $('.searchTag.searchTagIcon').html('<i class="icon-search"></i>')
1039 },
1030 });
1040 });
1031
1041
1032 showMainFilterBox = function () {
1042 showMainFilterBox = function () {
Comments 0
You need to be logged in to leave comments. Login now