Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var SearchPerson = function() {
- this.beforeReq = function() {
- if (heightSearchResult < $(window).height()) {
- count = Math.round(($(window).height() - heightSearchResult) / 41 + 2) * 4;
- count = (count > 16 ? count : 16)
- }
- idLoaderTimeout = setTimeout(function(){jqueryMap.$loader.show('fast');},100);
- this.url = this.inputData.attr('action') || this.inputData.attr('value');
- this.data = this.inputData.serialize() + '&' + $.param({data: {start: start, count: count}});
- return true;
- };
- this.successReq = function(resp) {
- clearTimeout(idLoaderTimeout);
- lockSearchRequest = false;
- jqueryMap.$loader.hide(0);
- if (resp.status == 'USERS_FOUND') {
- if (start == 0) {
- returnedTotalCount = resp.result.totalCount;
- if( !jqueryMap.$resultSearch.is(':empty') ) {
- jqueryMap.$resultSearch.empty();
- }
- if (jqueryMap.$userAbsent.is(':visible')) {
- jqueryMap.$userAbsent.hide(0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement