MDL-42395 mod_assign: build YUI module and fixed lint errors
authorMark Nelson <markn@moodle.com>
Fri, 29 Jan 2016 09:55:21 +0000 (17:55 +0800)
committerMark Nelson <markn@moodle.com>
Fri, 29 Jan 2016 09:56:11 +0000 (17:56 +0800)
mod/assign/yui/build/moodle-mod_assign-history/moodle-mod_assign-history-debug.js
mod/assign/yui/build/moodle-mod_assign-history/moodle-mod_assign-history-min.js
mod/assign/yui/build/moodle-mod_assign-history/moodle-mod_assign-history.js
mod/assign/yui/src/history/js/history.js

index 73c9357..c3f098f 100644 (file)
Binary files a/mod/assign/yui/build/moodle-mod_assign-history/moodle-mod_assign-history-debug.js and b/mod/assign/yui/build/moodle-mod_assign-history/moodle-mod_assign-history-debug.js differ
index 81dd1a9..9004c3b 100644 (file)
Binary files a/mod/assign/yui/build/moodle-mod_assign-history/moodle-mod_assign-history-min.js and b/mod/assign/yui/build/moodle-mod_assign-history/moodle-mod_assign-history-min.js differ
index 73c9357..c3f098f 100644 (file)
Binary files a/mod/assign/yui/build/moodle-mod_assign-history/moodle-mod_assign-history.js and b/mod/assign/yui/build/moodle-mod_assign-history/moodle-mod_assign-history.js differ
index 26529e4..a30c3a0 100644 (file)
@@ -48,9 +48,17 @@ var CSS = {
                 panel.set('aria-live', 'polite');
 
                 wrapper.addClass(CSS.LINK);
-                (COUNT == 1) ? wrapper.addClass(CSS.OPEN) : wrapper.addClass(CSS.CLOSED);
+                if (COUNT == 1) {
+                    wrapper.addClass(CSS.OPEN);
+                } else {
+                    wrapper.addClass(CSS.CLOSED);
+                }
                 panel.addClass(CSS.PANEL);
-                (COUNT == 1) ? panel.show() : panel.hide();
+                if (COUNT == 1) {
+                    panel.show();
+                } else {
+                    panel.hide();
+                }
                 link = null;
             } else {
                 link = this;