diff options
author | Aaron Parecki <aaron@parecki.com> | 2015-09-08 22:55:56 -0700 |
---|---|---|
committer | Aaron Parecki <aaron@parecki.com> | 2015-09-08 22:55:56 -0700 |
commit | 2bb18a66be585384acd5a4068a4311a976e28c57 (patch) | |
tree | 1f2dc711454a24d76f8004836419ed035f4e22f8 /public/editor/editor.js | |
parent | 881550cac72bfcc2e7551fe13288ea8a1d27ca34 (diff) |
add banner to opt in to html content change
Diffstat (limited to 'public/editor/editor.js')
-rw-r--r-- | public/editor/editor.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/public/editor/editor.js b/public/editor/editor.js index 526a444..f0e9519 100644 --- a/public/editor/editor.js +++ b/public/editor/editor.js @@ -89,6 +89,18 @@ $(function() { }); }); + $("#micropub-html-btn").click(function(){ + $.post('/settings/html-content', { + html: 1 + }, function(data){ + }); + }); + + $.getJSON('/settings/html-content', function(data){ + if(data.html == '0') { + $('.micropub-html-warning').show(); + } + }); }); function reset_page() { |