summaryrefslogtreecommitdiff
path: root/gstudio/static/gstudio/js/replytotopic.js
blob: 7f14b31d531d16cbc20f8166432398c62d9d840b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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);
            }

	});
     


  });