Index: lams_central/web/groupContents.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/groupContents.jsp,v diff -u -r1.20 -r1.21 --- lams_central/web/groupContents.jsp 9 May 2012 16:21:28 -0000 1.20 +++ lams_central/web/groupContents.jsp 23 Sep 2012 16:16:06 -0000 1.21 @@ -10,7 +10,7 @@
");
+ 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) {