Page MenuHomeWickedGov Phorge

ext.MWOAuth.AuthorizeDialog.js
No OneTemporary

Size
710 B
Referenced Files
None
Subscribers
None

ext.MWOAuth.AuthorizeDialog.js

/**
* OAuth JavaScript
*
* @author Aaron Schulz 2013
*/
( function () {
'use strict';
var mwoauth = {
init: function () {
var $form = $( '#mw-mwoauth-authorize-form' );
OO.ui.getWindowManager().openWindow( 'message', {
message: $form,
size: 'medium',
actions: []
} ).opened.then( function () {
// Appending the <form> to a <label> makes the whole form a click target
// for 'Allow', so move it out of the <label>
OO.ui.getWindowManager().getCurrentWindow().text.$element.append( $form );
} );
$form.on( 'submit', function () {
$( '#mw-mwoauth-accept' ).prop( 'disabled', true );
} );
}
};
// Perform some onload events:
$( mwoauth.init );
}() );

File Metadata

Mime Type
text/plain
Expires
Oct 4 2026, 13:56 (5 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b4/7b/c796d84d0e93a0eebefcacdb18a2
Default Alt Text
ext.MWOAuth.AuthorizeDialog.js (710 B)

Event Timeline