mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 15:13:43 +08:00
FIX: IE9 issues with latest discourse
This commit is contained in:
parent
bb0c2813ac
commit
78abf85087
|
@ -314,7 +314,7 @@ Discourse.Utilities = {
|
|||
@returns {Promise} a promise that will eventually be the cropped avatar.
|
||||
**/
|
||||
cropAvatar: function(url) {
|
||||
const extension = /\.(\w{2,})$/.exec(url)[1];
|
||||
var extension = /\.(\w{2,})$/.exec(url)[1];
|
||||
if (Discourse.SiteSettings.allow_animated_avatars && extension === "gif") {
|
||||
// can't crop animated gifs... let the browser stretch the gif
|
||||
return Ember.RSVP.resolve(url);
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
|
||||
(function() {
|
||||
|
||||
const DATA_PREFIX = "data-poll-";
|
||||
const DEFAULT_POLL_NAME = "poll";
|
||||
var DATA_PREFIX = "data-poll-";
|
||||
var DEFAULT_POLL_NAME = "poll";
|
||||
|
||||
const WHITELISTED_ATTRIBUTES = ["type", "name", "min", "max", "step", "order", "status"];
|
||||
var WHITELISTED_ATTRIBUTES = ["type", "name", "min", "max", "step", "order", "status"];
|
||||
|
||||
const ATTRIBUTES_REGEX = new RegExp("(" + WHITELISTED_ATTRIBUTES.join("|") + ")=['\"]?[^\\s\\]]+['\"]?", "g");
|
||||
var ATTRIBUTES_REGEX = new RegExp("(" + WHITELISTED_ATTRIBUTES.join("|") + ")=['\"]?[^\\s\\]]+['\"]?", "g");
|
||||
|
||||
Discourse.Dialect.replaceBlock({
|
||||
start: /\[poll((?:\s+\w+=[^\s\]]+)*)\]([\s\S]*)/igm,
|
||||
|
|
Loading…
Reference in New Issue
Block a user