}
});
- User.init({@$__wcf->user->userID}, '{@$__wcf->user->username|encodeJS}');
+ User.init({@$__wcf->user->userID}, '{@$__wcf->user->username|encodeJS}', {if $__wcf->user->userID}'{@$__wcf->user->getLink()|encodeJS}'{else}''{/if});
});
</script>
- {js application='wcf' lib='jquery'}
<script>
// prevent jQuery and other libraries from utilizing define()
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @module WoltLabSuite/Core/Controller/Media/List
*/
- define(['EventHandler', 'WoltLabSuite/Core/Controller/Clipboard', 'WoltLabSuite/Core/Media/Editor', 'WoltLabSuite/Core/Media/List/Upload'], function(EventHandler, Clipboard, MediaEditor, MediaListUpload) {
+ define([
+ 'Dom/ChangeListener',
+ 'EventHandler',
+ 'WoltLabSuite/Core/Controller/Clipboard',
+ 'WoltLabSuite/Core/Media/Editor',
+ 'WoltLabSuite/Core/Media/List/Upload'
+ ],
+ function(
+ DomChangeListener,
+ EventHandler,
+ Clipboard,
+ MediaEditor,
+ MediaListUpload
+ ) {
"use strict";
+ if (!COMPILER_TARGET_DEFAULT) {
+ var Fake = function() {};
+ Fake.prototype = {
+ init: function() {},
+ _clipboardAction: function() {},
+ _edit: function() {}
+ };
+ return Fake;
+ }
+
var _mediaEditor;
+ var _tableBody = elById('mediaListTableBody');
/**
* @exports WoltLabSuite/Core/Controller/Media/List