mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-25 06:50:55 +01:00
18 lines
446 B
JavaScript
18 lines
446 B
JavaScript
|
/**
|
||
|
* @provides javelin-behavior-pholio-mock-view
|
||
|
* @requires javelin-behavior
|
||
|
* javelin-stratcom
|
||
|
*/
|
||
|
JX.behavior('pholio-mock-view', function(config) {
|
||
|
JX.Stratcom.listen(
|
||
|
'click', // Listen for clicks...
|
||
|
'mock-thumbnail', // ...on nodes with sigil "mock-thumbnail".
|
||
|
function(e) {
|
||
|
var data = e.getNodeData('mock-thumbnail');
|
||
|
|
||
|
var main = JX.$(config.mainID);
|
||
|
main.src = data.fullSizeURI;
|
||
|
});
|
||
|
});
|
||
|
|