Added standard fields, login/reset display improvements

This commit is contained in:
Deon George
2016-08-18 12:34:53 +10:00
parent a7616960f0
commit 2b48dde8f7
14 changed files with 155 additions and 182 deletions

View File

@@ -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);

View File

@@ -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 {