From 861e4930040e27516cc24b999d7ad107e7418d32 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Wed, 27 Feb 2019 08:22:23 +0100 Subject: [PATCH] Remove unused js file --- main/course_description/resources/js/main.js | 40 -------------------- 1 file changed, 40 deletions(-) delete mode 100755 main/course_description/resources/js/main.js diff --git a/main/course_description/resources/js/main.js b/main/course_description/resources/js/main.js deleted file mode 100755 index a9a5b8cbb8..0000000000 --- a/main/course_description/resources/js/main.js +++ /dev/null @@ -1,40 +0,0 @@ -function Proxy() { -} - -Proxy.prototype.root = function () { - return www + '/main/inc/ajax/course_description.ajax.php'; -} - -Proxy.prototype.post = function (data, f) { - if (typeof(sec_token) !== 'undefined') { - data.sec_token = sec_token; - } - $.post(this.root(), data, f, 'json'); -} - -var CourseDescription = new Proxy(); - -CourseDescription.del = function (c_id, id, f) { - var data = { - c_id: c_id, - id: id, - action: 'delete' - }; - this.post(data, f); -}; - -CourseDescription.delete_by_course = function (c_id, session_id, f) { - var data = { - c_id: c_id, - session_id: session_id, - action: 'delete_by_course' - }; - this.post(data, f); -}; - -var message = {}; - -message.update = function (data) { - text = typeof(data) == 'string' ? data : data.message; - $('#messages').html(text); -}