<defaultvalue>280</defaultvalue> <!-- TODO: temporary value -->
<minvalue>145</minvalue> <!-- TODO: temporary value -->
<maxvalue>400</maxvalue> <!-- TODO: temporary value -->
+ <suffix>pixel</suffix>
</option>
<option name="media_small_thumbnail_height">
<categoryname>cms.media.thumbnail</categoryname>
<defaultvalue>210</defaultvalue> <!-- TODO: temporary value -->
<minvalue>145</minvalue> <!-- TODO: temporary value -->
<maxvalue>300</maxvalue> <!-- TODO: temporary value -->
+ <suffix>pixel</suffix>
</option>
<option name="media_small_thumbnail_retain_dimensions">
<categoryname>cms.media.thumbnail</categoryname>
<defaultvalue>560</defaultvalue> <!-- TODO: temporary value -->
<minvalue>400</minvalue> <!-- TODO: temporary value -->
<maxvalue>900</maxvalue> <!-- TODO: temporary value -->
+ <suffix>pixel</suffix>
</option>
<option name="media_medium_thumbnail_height">
<categoryname>cms.media.thumbnail</categoryname>
<defaultvalue>420</defaultvalue> <!-- TODO: temporary value -->
<minvalue>300</minvalue> <!-- TODO: temporary value -->
<maxvalue>700</maxvalue> <!-- TODO: temporary value -->
+ <suffix>pixel</suffix>
</option>
<option name="media_medium_thumbnail_retain_dimensions">
<categoryname>cms.media.thumbnail</categoryname>
<optiontype>integer</optiontype>
<defaultvalue>1200</defaultvalue> <!-- TODO: temporary value -->
<minvalue>900</minvalue> <!-- TODO: temporary value -->
+ <suffix>pixel</suffix>
</option>
<option name="media_large_thumbnail_height">
<categoryname>cms.media.thumbnail</categoryname>
<optiontype>integer</optiontype>
<defaultvalue>900</defaultvalue> <!-- TODO: temporary value -->
<minvalue>700</minvalue> <!-- TODO: temporary value -->
+ <suffix>pixel</suffix>
</option>
<option name="media_large_thumbnail_retain_dimensions">
<categoryname>cms.media.thumbnail</categoryname>
var languages = {
{implode from=$languages item=__language}
'{@$__language->languageID}': {
- iconPath: '{@$__language->getIconPath()}',
+ iconPath: '{@$__language->getIconPath()|encodeJS}',
languageName: '{$__language}'
}
{/implode}
var languages = {
{implode from=$languages item=__language}
'{@$__language->languageID}': {
- iconPath: '{@$__language->getIconPath()}',
+ iconPath: '{@$__language->getIconPath()|encodeJS}',
languageName: '{$__language}'
}
{/implode}
var button = this.button.add('woltlabMedia', 'Media');
$(button).attr('id', 'mediaManagerButton');
- require(['WoltLab/WCF/Media/Manager'], (function(MediaManager) {
+ require(['WoltLab/WCF/Media/Manager'], function(MediaManager) {
new MediaManager();
- }).bind(this));
+ });
},
};
};
-
+/**
+ * TODO: complete implementation
+ */
define(['Core', 'Dom/ChangeListener', 'Dom/Traverse', 'Language', 'List', 'Upload'], function(Core, DomChangeListener, DomTraverse, Language, List, Upload) {
"use strict";
*/
_getParameters: function() {
return {
- objectID: this._objectIdh,
+ objectID: this._objectId,
objectType: this._objectType,
parentObjectID: this._parentObjectId,
- tmpHash: this._tmpHas
+ tmpHash: this._tmpHash
};
},
FileUtil::makePath($dir, 0777);
}
- // move uploaded filex
+ // move uploaded file
if (@move_uploaded_file($uploadFile->getLocation(), $object->getLocation())) {
// rotate image based on the exif data
if (!empty($this->options['rotateImages'])) {
$adapter->writeImage($object->getLocation());
- // update width, height and filesize of the attachment
+ // update width, height and filesize of the object
if ($newImage !== null && ($orientation == ExifUtil::ORIENTATION_90_ROTATE || $orientation == ExifUtil::ORIENTATION_270_ROTATE)) {
(new $this->editorClassName($object))->update([
'height' => $object->width,