removed project filter
This commit is contained in:
parent
cff9519127
commit
321dbb7bac
5 changed files with 26 additions and 64 deletions
|
@ -7,19 +7,6 @@ var ProjectsList = {
|
|||
this.limit=limit;
|
||||
this.offset=limit;
|
||||
this.initLoadMore();
|
||||
|
||||
$('.project_search').keyup(function() {
|
||||
var terms = $(this).val();
|
||||
if (terms.length >= 2 || terms.length == 0) {
|
||||
url = $('.project_search').parent().attr('action');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: location.href,
|
||||
data: { 'terms': terms, 'replace': true },
|
||||
dataType: "script"
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
getOld:
|
||||
|
@ -33,17 +20,6 @@ var ProjectsList = {
|
|||
dataType: "script"});
|
||||
},
|
||||
|
||||
replace:
|
||||
function(count, html) {
|
||||
$(".tile").html(html);
|
||||
if(count == ProjectsList.limit) {
|
||||
this.offset = count;
|
||||
this.initLoadMore();
|
||||
} else {
|
||||
this.offset = 0;
|
||||
}
|
||||
},
|
||||
|
||||
append:
|
||||
function(count, html) {
|
||||
$(".tile").append(html);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue