From 69a2173fdbc31eda0110997e28fea2037e5e1558 Mon Sep 17 00:00:00 2001 From: Frank Karlitschek Date: Tue, 24 Apr 2012 14:00:44 +0200 Subject: non working app. moved to the apps-playground repository --- apps/files_versioning/js/settings.js | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 apps/files_versioning/js/settings.js (limited to 'apps/files_versioning/js/settings.js') 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'); - } - }); - }); -}); -- cgit v1.2.3