mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
MDL-34741 use 2in3 in static JS
This commit is contained in:
parent
99a91bbad1
commit
82e7d74ece
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user