summaryrefslogtreecommitdiff
path: root/gstudio/static/gstudio/js/replycomment.js
blob: 8e33eba45c41dfdf4e446a04332455f723ada1ff (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
31
32
$.noConflict();
jQuery(document).ready(function($) {
    $(".commenteditor").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,});
    });
  
    $(".commentsavecontent").one("click",function(){
	var org_data = $("#gnoweditor").val();


//	document.getElementByClass("commentreptext").setAttribute("value",org_data);
	var elmts = document.getElementsByClassName ("commentreptext");
	for (var i = 0; i < elmts.length; i++) {
            elmts[i].setAttribute("value",org_data);
	      }
	alert(org_data);
       
    });
    $(".deleteresponse").one("click",function() {
	var elmts=document.getElementsByClassName("deleteresponse");
	alert("hai");
	alert(elmts.length);

	 

    });
});