summaryrefslogtreecommitdiff
path: root/gstudio/static/gstudio/js/replytotopic.js
diff options
context:
space:
mode:
Diffstat (limited to 'gstudio/static/gstudio/js/replytotopic.js')
-rw-r--r--gstudio/static/gstudio/js/replytotopic.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/gstudio/static/gstudio/js/replytotopic.js b/gstudio/static/gstudio/js/replytotopic.js
new file mode 100644
index 0000000..7f14b31
--- /dev/null
+++ b/gstudio/static/gstudio/js/replytotopic.js
@@ -0,0 +1,30 @@
+ $.noConflict();
+ jQuery(document).ready(function($) {
+ $(".editor").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,});
+
+ });
+
+
+ $(".savecontent").one("click",function() {
+ alert("Please click on Submit");
+ var org_data = $("#gnoweditor").val();
+
+ // alert(org_data);
+ // document.getElementsByClassName("reptext").value = org_data;
+
+ var elmts = document.getElementsByClassName ("reptext");
+ for (var i = 0; i < elmts.length; i++) {
+ elmts[i].setAttribute("value",org_data);
+ }
+
+ });
+
+
+
+ });