Merge pull request #1832 from MaxLeiter/media

Rename thumbnail/image option to more general `media`
This commit is contained in:
Al McKinlay 2017-12-14 09:05:40 +00:00 committed by GitHub
commit b9f1b9fd4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ userOptions = null;
module.exports = options; module.exports = options;
module.exports.shouldOpenMessagePreview = function(type) { module.exports.shouldOpenMessagePreview = function(type) {
return (options.links && type === "link") || (options.media && (type === "image" || type === "audio")); return type === "link" ? options.links : options.media;
}; };
module.exports.initialize = () => { module.exports.initialize = () => {

View File

@ -74,8 +74,8 @@
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<label class="opt"> <label class="opt">
<input type="checkbox" name="thumbnails"> <input type="checkbox" name="media">
Auto-expand images Auto-expand media
</label> </label>
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">