Skip to content

Commit

Permalink
fix: FireFox - button remove bloc each not working
Browse files Browse the repository at this point in the history
  • Loading branch information
wonknu committed Oct 27, 2016
1 parent bb3482d commit 8b56e2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/public/scripts/modules/EditorSave.js
Expand Up @@ -146,7 +146,7 @@ export default class EditorSave {
window.json = result.json
}
var formWrapper = document.querySelector('#abeForm')
formWrapper.classList.forEach(function (classStr) {
Array.prototype.forEach.call(formWrapper.classList, (classStr) => {
if(classStr.indexOf('status-') > -1) formWrapper.classList.remove(classStr)
})
formWrapper.classList.add('status-' + result.json.abe_meta.status)
Expand Down
2 changes: 2 additions & 0 deletions src/server/sass/modules/_editor-blocks.scss
Expand Up @@ -12,6 +12,8 @@
z-index: 5656;
right: 10px;
top: 10px;
height: 15px;
width: 15px;
}
}

Expand Down

0 comments on commit 8b56e2d

Please sign in to comment.