From c13854785f75aa49d783de800b76e877ac463302 Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Wed, 12 Mar 2014 15:32:24 +0800 Subject: [PATCH] MDL-44334 lockscroll: Fix wrong warning message --- .../moodle-core-lockscroll/moodle-core-lockscroll-debug.js | 2 +- lib/yui/src/lockscroll/js/lockscroll.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/yui/build/moodle-core-lockscroll/moodle-core-lockscroll-debug.js b/lib/yui/build/moodle-core-lockscroll/moodle-core-lockscroll-debug.js index c9e045c2edd..138ce04b914 100644 --- a/lib/yui/build/moodle-core-lockscroll/moodle-core-lockscroll-debug.js +++ b/lib/yui/build/moodle-core-lockscroll/moodle-core-lockscroll-debug.js @@ -63,7 +63,7 @@ Y.namespace('M.core').LockScroll = Y.Base.create('lockScroll', Y.Plugin.Base, [] windowHeight = Y.config.win.innerHeight || Y.config.doc.documentElement.clientHeight || 0; if (!forceOnSmallWindow && dialogueHeight > (windowHeight - 10)) { - Y.log('Dialogue height smaller than window height. Ignoring enable request.', 'warn', 'moodle-core-lockscroll'); + Y.log('Dialogue height greater than window height. Ignoring enable request.', 'warn', 'moodle-core-lockscroll'); return; } diff --git a/lib/yui/src/lockscroll/js/lockscroll.js b/lib/yui/src/lockscroll/js/lockscroll.js index 489b1efb4c7..0173793a15d 100644 --- a/lib/yui/src/lockscroll/js/lockscroll.js +++ b/lib/yui/src/lockscroll/js/lockscroll.js @@ -61,7 +61,7 @@ Y.namespace('M.core').LockScroll = Y.Base.create('lockScroll', Y.Plugin.Base, [] windowHeight = Y.config.win.innerHeight || Y.config.doc.documentElement.clientHeight || 0; if (!forceOnSmallWindow && dialogueHeight > (windowHeight - 10)) { - Y.log('Dialogue height smaller than window height. Ignoring enable request.', 'warn', 'moodle-core-lockscroll'); + Y.log('Dialogue height greater than window height. Ignoring enable request.', 'warn', 'moodle-core-lockscroll'); return; }