forked from gnowgi/gnowsys-studio
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
anujag
authored and
anujag
committed
Aug 9, 2012
1 parent
1a2ce99
commit b1f71c5
Showing
11 changed files
with
357 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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); | |||
|
|||
|
|||
|
|||
}); | |||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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); | |||
} | |||
|
|||
}); | |||
|
|||
|
|||
|
|||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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'); | |||
}); | |||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.