diff options
Diffstat (limited to 'gstudio/static/gstudio/js/topiccomment.js')
-rw-r--r-- | gstudio/static/gstudio/js/topiccomment.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gstudio/static/gstudio/js/topiccomment.js b/gstudio/static/gstudio/js/topiccomment.js new file mode 100644 index 00000000..611b9d1a --- /dev/null +++ b/gstudio/static/gstudio/js/topiccomment.js @@ -0,0 +1,17 @@ + $.noConflict(); + jQuery(document).ready(function($) { + $("#topicaddcontent").one("click",function() { + $("#chart").hide(); + $("#content").css({"width": "300px",}) + document.getElementById('gnoweditor').style.visibility="visible"; + $("#gnoweditor").orgitdown(mySettings); + var screentop=$(document).scrollTop(); + $(".orgitdownContainer").css({"margin-top":screentop,}); + }); + + $("#topicaddsave").one("click",function(){ + var org_data = $("#gnoweditor").val(); + $("#contenttext").val(org_data); + $('#topicsubmit').trigger('click'); + }); + }); |