Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>2013-10-01 20:34:08 +0400
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>2013-10-01 20:34:08 +0400
commitad8c16343653f2dab5b33d2824c2a14ee477cd40 (patch)
treeabedbb02b60da6d9967b8887a89ac799b09e7123 /js/personal.js
parent1aced0433c5b86ea5272e163909f0e2549f3ffbd (diff)
Default documents dir for upload. Ref #49
Diffstat (limited to 'js/personal.js')
-rw-r--r--js/personal.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/js/personal.js b/js/personal.js
new file mode 100644
index 00000000..00363b00
--- /dev/null
+++ b/js/personal.js
@@ -0,0 +1,15 @@
+$(document).ready(function(){
+ var documentsSettings = {
+ save : function() {
+ var data = {
+ savePath : $('#documents-default-path').val()
+ };
+ OC.msg.startSaving('#documents-personal .msg');
+ $.post(OC.filePath('documents', 'ajax', 'personal.php'), data, documentsSettings.afterSave);
+ },
+ afterSave : function(data){
+ OC.msg.finishedSaving('#documents-personal .msg', data);
+ }
+ };
+ $('#documents-default-path').blur(documentsSettings.save);
+}); \ No newline at end of file