aboutsummaryrefslogtreecommitdiffstats
path: root/js/ajax.js
diff options
context:
space:
mode:
authorRobin <robin@Amaya.(none)>2010-03-24 16:35:24 +0100
committerRobin <robin@Amaya.(none)>2010-03-24 16:35:24 +0100
commitba9c95621bccddc8c83689906643a080e1671f22 (patch)
tree0bf3686caccf70312aaa039d50b4cd7e662d964c /js/ajax.js
parent3f88fb9f14d330e7454edcfecfdf6d39a589949c (diff)
downloadnextcloud-server-ba9c95621bccddc8c83689906643a080e1671f22.tar.gz
nextcloud-server-ba9c95621bccddc8c83689906643a080e1671f22.zip
ajax interface
Diffstat (limited to 'js/ajax.js')
-rw-r--r--js/ajax.js28
1 files changed, 28 insertions, 0 deletions
diff --git a/js/ajax.js b/js/ajax.js
new file mode 100644
index 00000000000..6c0185c6592
--- /dev/null
+++ b/js/ajax.js
@@ -0,0 +1,28 @@
+/**
+* ownCloud - ajax frontend
+*
+* @author Robin Appelman
+* @copyright 2010 Robin Appelman icewind1991@gmail.com
+*
+* This library is free software; you can redistribute it and/or
+* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
+* License as published by the Free Software Foundation; either
+* version 3 of the License, or any later version.
+*
+* This library is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this library. If not, see <http://www.gnu.org/licenses/>.
+*
+*/
+
+var dir=''
+var loc=document.location.toString();
+if(loc.indexOf('#')!=-1){
+ dir=loc.substring(loc.indexOf('#')+1);
+}
+
+OC_onload.add(new function(){OC_FILES.showbrowser(dir)}); \ No newline at end of file