[LON-CAPA-cvs] cvs: loncom(version_2_10_X) /interface lonconfigsettings.pm
raeburn
raeburn@source.lon-capa.org
Sat, 14 Aug 2010 13:38:33 -0000
raeburn Sat Aug 14 13:38:33 2010 EDT
Modified files: (Branch: version_2_10_X)
/loncom/interface lonconfigsettings.pm
Log:
- jQuery Accordion style not in 2.10.
Index: loncom/interface/lonconfigsettings.pm
diff -u loncom/interface/lonconfigsettings.pm:1.15 loncom/interface/lonconfigsettings.pm:1.15.2.1
--- loncom/interface/lonconfigsettings.pm:1.15 Sat Jul 17 20:02:07 2010
+++ loncom/interface/lonconfigsettings.pm Sat Aug 14 13:38:33 2010
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler to set domain-wide configuration settings
#
-# $Id: lonconfigsettings.pm,v 1.15 2010/07/17 20:02:07 raeburn Exp $
+# $Id: lonconfigsettings.pm,v 1.15.2.1 2010/08/14 13:38:33 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -282,34 +282,6 @@
}
$r->print('</form>');
}
- if ($context eq 'course') {
- $r->print('
-<script type="text/javascript">
- $(document).ready(function(){
- $("#prefs").accordion({
- autoHeight: false
- });
- if ($(".LC_nested tr.advanced").get(0)) {
- $(".LC_nested tr.advanced").each(function() {
- $(this).hide();
- p = $(this).parents("div.ui-accordion-content")
- if (p.find(".LC_advanced_toggle").length) {
- return;
- }
- p.prepend("<span class=\'LC_advanced_toggle\'><input type=\"checkbox\"/>Show advanced options</span>");
- });
- $(".LC_advanced_toggle input").change(function() {
- if($(this).is(":checked")) {
- $(this).parents("div.ui-accordion-content").find("tr.advanced").fadeIn("normal");
- } else {
- $(this).parents("div.ui-accordion-content").find("tr.advanced").fadeOut("normal");
- }
- });
- }
- });
-</script>
-');
- }
$r->print(&Apache::loncommon::end_page());
return;
}