Index: lams_central/web/includes/javascript/groupDisplay.js
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/groupDisplay.js,v
diff -u -r1.11 -r1.12
--- lams_central/web/includes/javascript/groupDisplay.js 1 Mar 2012 08:45:50 -0000 1.11
+++ lams_central/web/includes/javascript/groupDisplay.js 2 Mar 2012 18:18:24 -0000 1.12
@@ -16,7 +16,9 @@
toggleGroupContents(element, stateId);
registerToolTip(element);
jQuery(element).css("display", "block");
- tb_init('a.thickbox'+jQuery(element).attr("id"));
+ jQuery("a[class^='thickbox']",element).each(function(){
+ tb_init(this);
+ });
initMoreActions(element);
}
);
@@ -125,8 +127,9 @@
var org = jQuery("div.course-bg#"+orgId);
if (jQuery("div.j-lessons", org).size() > 0) {
var jLessons = jQuery("div.j-lessons#"+orgId+"-lessons");
- makeSortable(jLessons, "j-single-lesson");
- jQuery("div.j-subgroup-lessons", org).each(function() {
+ var jLessonsTable = jQuery("table.lesson-table",jLessons);
+ makeSortable(jLessonsTable, "j-single-lesson");
+ jQuery("div.j-subgroup-lessons>table.lesson-table", org).each(function() {
makeSortable(jQuery(this), "j-single-subgroup-lesson");
});
jQuery("div.mycourses-right-buttons", jLessons).html("
");
@@ -138,11 +141,12 @@
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) {
- jLessons.SortableDestroy();
+ jLessonsTable.SortableDestroy();
link.html("
");
- jQuery("div.j-subgroup-lessons", this).each(function() {
+ jQuery("div.j-subgroup-lessons>table.lesson-table", this).each(function() {
jQuery(this).SortableDestroy();
});
}