mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Merge pull request #1822 from cfstras/breakUp_username_fix
Fix Post-rendering bug
This commit is contained in:
commit
e5b4f0f51e
1 changed files with 3 additions and 2 deletions
|
@ -7,9 +7,10 @@
|
|||
Handlebars.registerHelper('breakUp', function(property, hint, options) {
|
||||
var prop = Ember.Handlebars.get(this, property, options);
|
||||
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 a new issue