From b1f71c5439e3bdf7a3c0fb2c1730d6242c6356d9 Mon Sep 17 00:00:00 2001 From: anujag Date: Thu, 9 Aug 2012 18:38:06 +0530 Subject: added loom studio --- gstudio/static/gstudio/js/replycomment.js | 32 +++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 gstudio/static/gstudio/js/replycomment.js (limited to 'gstudio/static/gstudio/js/replycomment.js') diff --git a/gstudio/static/gstudio/js/replycomment.js b/gstudio/static/gstudio/js/replycomment.js new file mode 100644 index 0000000..8e33eba --- /dev/null +++ b/gstudio/static/gstudio/js/replycomment.js @@ -0,0 +1,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); + + + + }); +}); -- cgit v1.1