mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 08:35:19 +08:00
Merge pull request #1822 from cfstras/breakUp_username_fix
Fix Post-rendering bug
This commit is contained in:
commit
e5b4f0f51e
|
@ -7,9 +7,10 @@
|
||||||
Handlebars.registerHelper('breakUp', function(property, hint, options) {
|
Handlebars.registerHelper('breakUp', function(property, hint, options) {
|
||||||
var prop = Ember.Handlebars.get(this, property, options);
|
var prop = Ember.Handlebars.get(this, property, options);
|
||||||
if (!prop) return "";
|
if (!prop) return "";
|
||||||
hint = Ember.Handlebars.get(this, hint, options);
|
if (typeof(hint) !== 'string') hint = property;
|
||||||
|
|
||||||
return Discourse.Formatter.breakUp(prop, hint);
|
hint = Ember.Handlebars.get(this, hint, options);
|
||||||
|
return new Handlebars.SafeString(Discourse.Formatter.breakUp(prop, hint));
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user