added remove background images when baground colour is set in users' text prefs
authorgreg gay <ggay@ocad.ca>
Fri, 10 Jun 2011 19:44:33 +0000 (19:44 -0000)
committergreg gay <ggay@ocad.ca>
Fri, 10 Jun 2011 19:44:33 +0000 (19:44 -0000)
docs/jscripts/ATutor.js

index 0913d53..d113a90 100644 (file)
@@ -84,6 +84,21 @@ ATutor.users.preferences = ATutor.users.preferences || {};
                '#contentwrapper {' +
                'FG_COLOR BG_COLOR' +
                '}' +
+               '#contentcolumn {' +
+               'FG_COLOR BG_COLOR' +
+               '}' +
+               '#rightcolumn {' +
+               'FG_COLOR BG_COLOR' +
+               '}' +
+               '#ctitle {' +
+               'FG_COLOR BG_COLOR FONT_SIZE FONT_FAMILY' +
+               '}' +
+               '#body_text{' +
+               'FG_COLOR BG_COLOR' +
+               '}' +
+               '.group_form {' +
+               'FG_COLOR BG_COLOR' +
+               '}' +
                '.test_instruction {' +
                'FG_COLOR BG_COLOR' +
                '}' +
@@ -554,7 +569,7 @@ ATutor.users.preferences = ATutor.users.preferences || {};
     ATutor.users.preferences.setStyles = function (bg_color, fg_color, hl_color, font, font_size) {
                var font_style = font ? 'font-family:' + font + ' !important;\n' : '';
                var font_size_style = font_size ? 'font-size:' + font_size + 'em !important;\n' : '';
-               var bg_color_style = bg_color ? 'background-color: #' + bg_color + ' !important;\n' : '';
+               var bg_color_style = bg_color ? 'background-color: #' + bg_color + ' !important;\n' + 'background-image: none  !important;\n' : '';
                var fg_color_style = fg_color ? 'color: #' + fg_color + ' !important;\n' : '';
                var hl_color_style = hl_color ? 'background-color: #' + hl_color + '! important;\n' : '';
                var bd_color_style = fg_color ? 'border-color: #' + fg_color + '! important;\n' : '';