FIX: Safari bugs with new customize code

This commit is contained in:
Robin Ward 2015-08-10 16:46:36 -04:00
parent d37accb5bc
commit aa81261875
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ export default Ember.Controller.extend(activeSections, {
downloadUrl: url('model.id', '/admin/size_customizations/%@'), downloadUrl: url('model.id', '/admin/size_customizations/%@'),
mobile: function() { mobile: function() {
return this.get('section').startsWith('mobile-'); return this.get('section').indexOf('mobile-') === 0;
}.property('section'), }.property('section'),
maximizeIcon: function() { maximizeIcon: function() {
@ -72,7 +72,7 @@ export default Ember.Controller.extend(activeSections, {
dest = 'mobile-' + section; dest = 'mobile-' + section;
if (sections.indexOf(dest) === -1) { dest = 'mobile-css'; } 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);
} }
} }