Index: lams_central/web/includes/javascript/groupDisplay.js
===================================================================
diff -u -r56da6c13b6d82f6759a10e978eb95a8d76919a38 -r910872499b502ccfcae4f620bedb1fa7e1b991ad
--- lams_central/web/includes/javascript/groupDisplay.js (.../groupDisplay.js) (revision 56da6c13b6d82f6759a10e978eb95a8d76919a38)
+++ lams_central/web/includes/javascript/groupDisplay.js (.../groupDisplay.js) (revision 910872499b502ccfcae4f620bedb1fa7e1b991ad)
@@ -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) {