removed mods directory from the ATutor codebase
[atutor.git] / mods / atutor_opencaps / opencaps / js / start_remote.js
diff --git a/mods/atutor_opencaps/opencaps/js/start_remote.js b/mods/atutor_opencaps/opencaps/js/start_remote.js
deleted file mode 100755 (executable)
index 91a2eb0..0000000
+++ /dev/null
@@ -1,99 +0,0 @@
-/*\r
- * OpenCaps\r
- * http://opencaps.atrc.utoronto.ca\r
- * \r
- * Copyright 2009 Heidi Hazelton\r
- * Adaptive Technology Resource Centre, University of Toronto\r
- * \r
- * Licensed under the Educational Community License (ECL), Version 2.0. \r
- * You may not use this file except in compliance with this License.\r
- * http://www.opensource.org/licenses/ecl2.php\r
- * \r
- */\r
-\r
-$(document).ready(function () {\r
-       var rid = window.location.search.substring(3,4);\r
-       var page = window.location.search.substring(10);\r
-       \r
-       if (page == '')\r
-               page = 1;\r
-\r
-       //create start tabs, local and remote   \r
-       $.get("include/workflow.php", { task: 'get_tabs' }, function(data) {\r
-               $("#start-tabs").html(data);    \r
-               $("#remote-"+rid).addClass('current');\r
-       });     \r
-       \r
-       $.get("include/workflow.php", { task: 'print_projs_remote', rid: rid, page: page }, function(data){             \r
-               $("#projects").html(data);      \r
-       });\r
-       \r
-});\r
-\r
-\r
-function validateOpenForm() {\r
-       var myform = document.forms[0];\r
-       var errs = '';\r
-       var chosen = null;\r
-       \r
-       //make sure a project was selected\r
-       chosen = myform.proj.value;\r
-\r
-       projlen = myform.proj.length;  //if array\r
-       \r
-               for (i = 0; i <projlen; i++) {\r
-               if (myform.proj[i].checked) {\r
-                       chosen = myform.proj[i].value;\r
-               }\r
-       }       \r
-       \r
-       if (chosen == null) \r
-               errs += 'You must choose a project to open.\n';\r
-\r
-       if (errs != '') {\r
-               alert(errs);\r
-               return false;\r
-       } else {\r
-               return true;\r
-       }\r
-}\r
-\r
-function processOpenRemote() { \r
-       var myform = document.forms[0];\r
-\r
-       //get chosen project id\r
-       chosen = myform.proj.value;\r
-\r
-       projlen = myform.proj.length;  //if array       \r
-       for (i = 0; i<projlen; i++) {\r
-               if (myform.proj[i].checked) {\r
-                       chosen = myform.proj[i].value;\r
-               }\r
-       }       \r
-       \r
-       //open project\r
-       $.get("include/workflow.php", { task: 'open_proj_remote', pid: chosen  }, function(data){               \r
-               if (!data) {\r
-                       window.location = "editor.php";\r
-               } else {\r
-                       alert(data);\r
-               }\r
-       });\r
-}\r
-\r
-\r
-/*for(var i=0; i<document.forms[1].pkg_url.length; i++) {\r
-if (document.forms[1].pkg_url[i].checked == true ) {\r
-       var pkg_url = document.forms[1].pkg_url[i].value;\r
-       break;\r
-}\r
-\r
-var pkg_url = document.forms[1].pkg_url.value;\r
-\r
-$.get("include/workflow.php", { task:'open_proj_pkg', xml:pkg_url }, function(data){\r
-if (!data) {\r
-       window.location = "editor.php";\r
-} else {\r
-       alert(data);\r
-}\r
-});    }*/
\ No newline at end of file