aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_versioning/js
diff options
context:
space:
mode:
authorFrank Karlitschek <karlitschek@kde.org>2012-04-24 14:00:44 +0200
committerFrank Karlitschek <karlitschek@kde.org>2012-04-24 14:00:44 +0200
commit69a2173fdbc31eda0110997e28fea2037e5e1558 (patch)
treedc76c9b967f58eb6cb752c2d34f9b6ddb190e06e /apps/files_versioning/js
parent4ea927a7987d7fdcefcacb341f1a60b094ccf8d2 (diff)
downloadnextcloud-server-69a2173fdbc31eda0110997e28fea2037e5e1558.tar.gz
nextcloud-server-69a2173fdbc31eda0110997e28fea2037e5e1558.zip
non working app. moved to the apps-playground repository
Diffstat (limited to 'apps/files_versioning/js')
-rw-r--r--apps/files_versioning/js/settings.js25
1 files changed, 0 insertions, 25 deletions
diff --git a/apps/files_versioning/js/settings.js b/apps/files_versioning/js/settings.js
deleted file mode 100644
index 8dd13bac033..00000000000
--- a/apps/files_versioning/js/settings.js
+++ /dev/null
@@ -1,25 +0,0 @@
-$(document).ready(function(){
- $('#file_versioning_head').chosen();
-
- $.getJSON(OC.filePath('files_versioning', 'ajax', 'gethead.php'), function(jsondata, status) {
-
- if (jsondata.head == 'HEAD') {
- // Most recent commit, do nothing
- } else {
- $("#file_versioning_head").val(jsondata.head);
- // Trigger the chosen update call
- // See http://harvesthq.github.com/chosen/
- $("#file_versioning_head").trigger("liszt:updated");
- }
- });
-
- $('#file_versioning_head').change(function() {
-
- var data = $(this).serialize();
- $.post( OC.filePath('files_versioning', 'ajax', 'sethead.php'), data, function(data){
- if(data == 'error'){
- console.log('Saving new HEAD failed');
- }
- });
- });
-});