mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 00:01:24 +08:00
FIX: Safari bugs with new customize code
This commit is contained in:
@ -18,7 +18,7 @@ export default Ember.Controller.extend(activeSections, {
|
||||
downloadUrl: url('model.id', '/admin/size_customizations/%@'),
|
||||
|
||||
mobile: function() {
|
||||
return this.get('section').startsWith('mobile-');
|
||||
return this.get('section').indexOf('mobile-') === 0;
|
||||
}.property('section'),
|
||||
|
||||
maximizeIcon: function() {
|
||||
@ -72,7 +72,7 @@ export default Ember.Controller.extend(activeSections, {
|
||||
dest = 'mobile-' + section;
|
||||
if (sections.indexOf(dest) === -1) { dest = 'mobile-css'; }
|
||||
}
|
||||
this.replaceWith('adminCustomizeCssHtml.show', this.get('model.id'), dest);
|
||||
this.replaceRoute('adminCustomizeCssHtml.show', this.get('model.id'), dest);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user