From 82e7d74ece048faf729b943a07ce3a7997f2c9bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20S=CC=8Ckoda?= Date: Mon, 6 Aug 2012 22:48:32 +0200 Subject: [PATCH] MDL-34741 use 2in3 in static JS --- lib/javascript-static.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/javascript-static.js b/lib/javascript-static.js index 77a50005691..4be74efc0be 100644 --- a/lib/javascript-static.js +++ b/lib/javascript-static.js @@ -216,7 +216,7 @@ M.util.show_confirm_dialog = function(e, args) { } YUI().use('yui2-container', 'yui2-event', function(Y) { - var simpledialog = new YAHOO.widget.SimpleDialog('confirmdialog', + var simpledialog = new Y.YUI2.widget.SimpleDialog('confirmdialog', {width: '300px', fixedcenter: true, modal: true, @@ -227,7 +227,7 @@ M.util.show_confirm_dialog = function(e, args) { simpledialog.setHeader(M.str.admin.confirmation); simpledialog.setBody(args.message); - simpledialog.cfg.setProperty('icon', YAHOO.widget.SimpleDialog.ICON_WARN); + simpledialog.cfg.setProperty('icon', Y.YUI2.widget.SimpleDialog.ICON_WARN); var handle_cancel = function() { simpledialog.hide(); @@ -341,7 +341,7 @@ M.util.init_maximised_embed = function(Y, id) { var headerheight = get_htmlelement_size('page-header', 'height'); var footerheight = get_htmlelement_size('page-footer', 'height'); - var newheight = parseInt(YAHOO.util.Dom.getViewportHeight()) - footerheight - headerheight - 100; + var newheight = parseInt(Y.YUI2.util.Dom.getViewportHeight()) - footerheight - headerheight - 100; if (newheight < 400) { newheight = 400; }