Added standard fields, login/reset display improvements
This commit is contained in:
@@ -16,7 +16,7 @@ $(document).ready(function() {
|
||||
});
|
||||
|
||||
var c=0;
|
||||
var search = _.debounce(function(url,query,process){
|
||||
var search = _.debounce(function(url,query,process,icon){
|
||||
$.ajax({
|
||||
url : site_url+url,
|
||||
type : 'GET',
|
||||
@@ -25,8 +25,12 @@ var search = _.debounce(function(url,query,process){
|
||||
async : true,
|
||||
cache : false,
|
||||
beforeSend : function() {
|
||||
if (c++ == 0)
|
||||
$('i[name=searching]').removeClass("hidden");
|
||||
if (c++ == 0) {
|
||||
if (icon)
|
||||
$('i[name='+icon+']').addClass("fa-spin");
|
||||
else
|
||||
$('i[name=searching]').removeClass("hidden");
|
||||
}
|
||||
},
|
||||
success : function(data) {
|
||||
// if json is null, means no match, won't do again.
|
||||
@@ -46,8 +50,12 @@ var search = _.debounce(function(url,query,process){
|
||||
process(userLabels);
|
||||
},
|
||||
complete : function() {
|
||||
if (--c == 0)
|
||||
$('i[name=searching]').addClass("hidden");
|
||||
if (--c == 0) {
|
||||
if (icon)
|
||||
$('i[name='+icon+']').removeClass("fa-spin");
|
||||
else
|
||||
$('i[name=searching]').addClass("hidden");
|
||||
}
|
||||
}
|
||||
})
|
||||
}, 500);
|
||||
|
@@ -82,11 +82,6 @@ table .text-right {
|
||||
font-weight: normal;
|
||||
color: #000;
|
||||
}
|
||||
.form-group [class*=" fa-spin"] {
|
||||
margin-left: -35px;
|
||||
position: relative;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.navbar .navbar-form .navbar-search-addon [class*=" fa-spin"] {
|
||||
padding: 10px 10px;
|
||||
@@ -102,7 +97,15 @@ table .text-right {
|
||||
}
|
||||
|
||||
.form-group {
|
||||
margin-bottom: 25px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.form-horizontal .form-group {
|
||||
margin-left: 0px;
|
||||
}
|
||||
|
||||
.form-group .input-group .input-group-addon {
|
||||
width: 38px;
|
||||
}
|
||||
|
||||
ul.typeahead.dropdown-menu {
|
||||
|
Reference in New Issue
Block a user