Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1429098
UploadSelectFileParamWidget.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
UploadSelectFileParamWidget.js
View Options
/**
* A wrapper for OO.ui.SelectFileInputWidget
*
* @class
* @private
* @constructor
*/
function
UploadSelectFileParamWidget
()
{
UploadSelectFileParamWidget
.
super
.
call
(
this
);
}
OO
.
inheritClass
(
UploadSelectFileParamWidget
,
OO
.
ui
.
SelectFileInputWidget
);
/**
* @return {string}
*/
UploadSelectFileParamWidget
.
prototype
.
getApiValueForDisplay
=
function
()
{
return
'...'
;
};
/**
* @return {boolean}
*/
UploadSelectFileParamWidget
.
prototype
.
requiresFormData
=
function
()
{
return
true
;
};
/**
* @return {any}
*/
UploadSelectFileParamWidget
.
prototype
.
getApiValue
=
function
()
{
return
this
.
getValue
();
};
/**
* There should be `@param {any} newValue` but that results in
* `no-unused-vars` eslint rule failing
*/
UploadSelectFileParamWidget
.
prototype
.
setApiValue
=
function
()
{
// No-op
};
/**
* @param {boolean} shouldSuppressErrors
* @return {jQuery.Promise}
*/
UploadSelectFileParamWidget
.
prototype
.
apiCheckValid
=
function
(
shouldSuppressErrors
)
{
const
ok
=
this
.
getValue
()
!==
null
&&
this
.
getValue
()
!==
undefined
||
shouldSuppressErrors
;
this
.
info
.
setIcon
(
ok
?
null
:
'alert'
);
this
.
setTitle
(
ok
?
''
:
mw
.
message
(
'apisandbox-alert-field'
).
plain
()
);
return
$
.
Deferred
().
resolve
(
ok
).
promise
();
};
module
.
exports
=
UploadSelectFileParamWidget
;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, May 16, 17:04 (10 h, 47 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
90/c3/cfda56b9f126cb1126bd5d047378
Default Alt Text
UploadSelectFileParamWidget.js (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment