Skip to content
This repository has been archived by the owner on Jul 31, 2019. It is now read-only.

Issue1631- remember allow javaScript setting #1725

Merged
merged 2 commits into from
Feb 11, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions public/editor/scripts/editor/js/fc/bramble-menus.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,12 @@ define(function(require) {
});
// Set initial UI value to match editor value
setWordWrapUI(bramble.getWordWrap());


//set initial UI value to allow javascript UI
if(bramble.getAllowJavaScript()) {
$("#allow-scripts-toggle").addClass("switch-enabled");
} else {
$("#allow-scripts-toggle").removeClass("switch-enabled");
}
// Enable/Disable JavaScript in Preview
$("#allow-scripts-toggle").click(function() {
// Toggle current value
Expand Down