Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4110661
Thumbnail.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
Thumbnail.js
View Options
const
mfExtend
=
require
(
'./mfExtend'
),
util
=
require
(
'./util'
),
View
=
require
(
'./View'
);
/**
* Representation of a thumbnail
*
* @class Thumbnail
* @extends module:mobile.startup/View
* @param {Object} options
*/
function
Thumbnail
(
options
)
{
View
.
call
(
this
,
util
.
extend
(
{
isBorderBox
:
false
},
options
)
);
}
mfExtend
(
Thumbnail
,
View
,
{
/**
* @memberof Thumbnail
* @instance
* @mixes module:mobile.startup/View#defaults
* @property {Object} defaults Default options hash.
* @property {string} defaults.filename uri decoded filename including File: prefix
* associated with thumbnail
*/
defaults
:
{
filename
:
undefined
},
/**
* @inheritdoc
* @memberof Thumbnail
* @instance
*/
postRender
()
{
this
.
options
.
description
=
this
.
$el
.
siblings
(
'.thumbcaption, figcaption'
)
.
prop
(
'innerText'
)
||
''
;
},
/**
* Obtain description for thumbnail
*
* @memberof Thumbnail
* @instance
* @return {string}
*/
getDescription
()
{
return
this
.
options
.
description
;
},
/**
* Return the page title for the thumbnail
*
* @memberof Thumbnail
* @instance
* @return {string}
*/
getFileName
()
{
return
this
.
options
.
filename
;
}
}
);
module
.
exports
=
Thumbnail
;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Aug 18, 21:56 (1 d, 5 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
11/b4/f28647898f8036521ecf2eb1721d
Default Alt Text
Thumbnail.js (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment