##// END OF EJS Templates
ui: added search icon and spinner when search is performing.
marcink -
r4095:e030f9fa default
parent child Browse files
Show More
@@ -754,7 +754,10 b' ul#context-pages {'
754 754 background-color: @black !important;
755 755 margin-right: 0;
756 756 }
757
757 .searchTagIcon {
758 margin: 0;
759 background: @black !important;
760 }
758 761 .searchTagHelp {
759 762 background-color: @grey1 !important;
760 763 margin: 0;
@@ -708,6 +708,10 b''
708 708 <div class="main_filter_input_box">
709 709 <ul class="searchItems">
710 710
711 <li class="searchTag searchTagIcon">
712 <i class="icon-search"></i>
713 </li>
714
711 715 % if c.template_context['search_context']['repo_id']:
712 716 <li class="searchTag searchTagFilter searchTagHidable" >
713 717 ##<a href="${h.route_path('search_repo',repo_name=c.template_context['search_context']['repo_name'])}">
@@ -1026,7 +1030,13 b''
1026 1030 alert("Error during search.\nError code: {0}".format(textStatus));
1027 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 1042 showMainFilterBox = function () {
General Comments 0
You need to be logged in to leave comments. Login now