summaryrefslogtreecommitdiff
path: root/gstudio/static
diff options
context:
space:
mode:
authoranujag <anujag@anujag-D630.(none)>2012-08-09 18:38:06 +0530
committeranujag <anujag@anujag-D630.(none)>2012-08-09 18:38:06 +0530
commitb1f71c5439e3bdf7a3c0fb2c1730d6242c6356d9 (patch)
treed49de61f85ce1c6bc68c5b851d9a2754b653e4a3 /gstudio/static
parent1a2ce999facc219c6fe3d2a64e8a39ff09ec9e01 (diff)
downloadgnowsys-b1f71c5439e3bdf7a3c0fb2c1730d6242c6356d9.tar.gz
added loom studio
Diffstat (limited to 'gstudio/static')
-rw-r--r--gstudio/static/gstudio/js/replycomment.js32
-rw-r--r--gstudio/static/gstudio/js/replytotopic.js30
-rw-r--r--gstudio/static/gstudio/js/topiccomment.js17
3 files changed, 79 insertions, 0 deletions
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);
+
+
+
+ });
+});
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);
+ }
+
+ });
+
+
+
+ });
diff --git a/gstudio/static/gstudio/js/topiccomment.js b/gstudio/static/gstudio/js/topiccomment.js
new file mode 100644
index 0000000..611b9d1
--- /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');
+ });
+ });