+
-
+
-
+
Index: lams_central/web/main.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/main.jsp,v
diff -u -r1.50 -r1.51
--- lams_central/web/main.jsp 15 Aug 2012 10:59:18 -0000 1.50
+++ lams_central/web/main.jsp 23 Sep 2012 16:16:06 -0000 1.51
@@ -83,8 +83,8 @@
return "
";
}
- function getSortingEnabledText() {
- return "
";
+ function getDisableSortingText() {
+ return "
";
}
function refresh(){
Index: lams_central/web/includes/javascript/groupDisplay.js
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/groupDisplay.js,v
diff -u -r1.16 -r1.17
--- lams_central/web/includes/javascript/groupDisplay.js 22 Sep 2012 13:50:06 -0000 1.16
+++ lams_central/web/includes/javascript/groupDisplay.js 23 Sep 2012 16:16:06 -0000 1.17
@@ -115,26 +115,19 @@
jQuery("div.j-subgroup-lessons>table.lesson-table tbody", org).each(function() {
makeSortable(jQuery(this));
});
- jQuery("div.mycourses-right-buttons", jLessons).html("

");
+ jQuery("div.mycourses-right-buttons", jLessons).html("

");
}
}
- function makeAllUnsortable() {
- jQuery("div.course-bg").each(function() {
- var orgId = this.id;
- if (jQuery("div.j-lessons", this).size() > 0) {
- var jLessons = jQuery("div.j-lessons#"+orgId+"-lessons")
- var jLessonsTable = jQuery("table.lesson-table",jLessons);
- var link = jQuery("div.mycourses-right-buttons", jLessons);
- if (link.html().indexOf(getSortingEnabledText()) >= 0) {
- jLessonsTable.SortableDestroy();
- link.html("

");
- jQuery("div.j-subgroup-lessons>table.lesson-table tbody", this).each(function() {
- jQuery(this).SortableDestroy();
- });
- }
- }
+ function makeOrgUnsortable(orgId) {
+ var org = jQuery("div.course-bg#"+orgId);
+ var jLessons = jQuery("div.j-lessons#"+orgId+"-lessons");
+ var jLessonsTable = jQuery("table.lesson-table tbody",jLessons);
+ jLessonsTable.sortable("destroy");
+ jQuery("div.j-subgroup-lessons>table.lesson-table tbody", org).each(function() {
+ jQuery(this).sortable("destroy");
});
+ jQuery("div.mycourses-right-buttons", jLessons).html("

");
}
function makeSortable(element) {