summaryrefslogtreecommitdiffstats
path: root/core/js/js.js
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2014-12-17 18:49:39 +0100
committerJörn Friedrich Dreyer <jfd@butonic.de>2015-01-02 10:28:41 +0100
commit606f802b7be0cb6f2f6d99c547e432bb8cd27994 (patch)
treec6e022168c4f1dc761e76ab8be78ba123c19f5f9 /core/js/js.js
parent0e9b05b7012844e348d36b5b35e1c50487a3bbc4 (diff)
downloadnextcloud-server-606f802b7be0cb6f2f6d99c547e432bb8cd27994.tar.gz
nextcloud-server-606f802b7be0cb6f2f6d99c547e432bb8cd27994.zip
move search results below filelist, show hint when results are off screen, use js plugin mechanism
Diffstat (limited to 'core/js/js.js')
-rw-r--r--core/js/js.js37
1 files changed, 1 insertions, 36 deletions
diff --git a/core/js/js.js b/core/js/js.js
index 9d38a8c77fe..8bcd546b420 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -309,7 +309,7 @@ var OC={
* @param {string} query the search query
*/
search: function (query) {
- OC.Search.search(query, 0, 30);
+ OC.Search.search(query, null, 0, 30);
},
/**
* Dialog helper for jquery dialogs.
@@ -601,41 +601,6 @@ OC.search.customResults = {};
*/
OC.search.resultTypes = {};
-/**
- * @namespace OC.Search
- */
-OC.Search = {
- /**
- * contains closures that are called to format search results
- */
- formatter:{},
- setFormatter: function(type, formatter) {
- this.formatter[type] = formatter;
- },
- hasFormatter: function(type) {
- return typeof this.formatter[type] !== 'undefined';
- },
- getFormatter: function(type) {
- return this.formatter[type];
- },
- /**
- * contains closures that are called when a search result has been clicked
- */
- handler:{},
- setHandler: function(type, handler) {
- this.handler[type] = handler;
- },
- hasHandler: function(type) {
- return typeof this.handler[type] !== 'undefined';
- },
- getHandler: function(type) {
- return this.handler[type];
- },
- currentResult:-1,
- lastQuery:'',
- lastResults:{}
-};
-
OC.addStyle.loaded=[];
OC.addScript.loaded=[];