MDL-41098 atto: Fix for dialogue ignoring centered option.
authorDamyon Wiese <damyon@moodle.com>
Tue, 27 Aug 2013 02:36:00 +0000 (10:36 +0800)
committerDamyon Wiese <damyon@moodle.com>
Tue, 27 Aug 2013 02:40:31 +0000 (10:40 +0800)
lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor-debug.js
lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor-min.js
lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor.js
lib/editor/atto/yui/src/editor/js/editor.js
lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue-debug.js
lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue-min.js
lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue.js
lib/yui/src/notification/js/dialogue.js

index 93153cf..520721b 100644 (file)
Binary files a/lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor-debug.js and b/lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor-debug.js differ
index e780c24..e610384 100644 (file)
Binary files a/lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor-min.js and b/lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor-min.js differ
index 93153cf..520721b 100644 (file)
Binary files a/lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor.js and b/lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor.js differ
index 3e807cd..4a2950c 100644 (file)
@@ -193,6 +193,7 @@ M.editor_atto = M.editor_atto || {
             zindex: 100,
             lightbox: false,
             closeButton: false,
+            centered : false,
             align: {node: button, points: [Y.WidgetPositionAlign.TL, Y.WidgetPositionAlign.BL]}
         });
 
index 60490ea..9581c3e 100644 (file)
Binary files a/lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue-debug.js and b/lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue-debug.js differ
index 17172da..17126d6 100644 (file)
Binary files a/lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue-min.js and b/lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue-min.js differ
index 60490ea..9581c3e 100644 (file)
Binary files a/lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue.js and b/lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue.js differ
index 28d4729..bc2a5e7 100644 (file)
@@ -44,7 +44,7 @@ DIALOGUE = function(config) {
     config.srcNode =    '#'+id;
     config.width =      config.width || '400px';
     config.visible =    config.visible || false;
-    config.center =     config.centered || true;
+    config.center =     config.centered && true;
     config.centered =   false;
     config.COUNT = COUNT;