mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-16 23:29:49 +00:00
[search] added 'advanced search' for top-search-form and search-result page
This commit is contained in:
@@ -362,3 +362,15 @@ function disable(btn) {
|
||||
function enable(btn) {
|
||||
btn.removeAttr('disabled').removeClass('btn-disabled');
|
||||
}
|
||||
|
||||
// for browsers don't support array.indexOf
|
||||
if (!Array.indexOf) {
|
||||
Array.prototype.indexOf = function(obj){
|
||||
for(var i = 0; i < this.length; i++){
|
||||
if(this[i] == obj){
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user