summaryrefslogtreecommitdiff
path: root/gstudio/static/gstudio/js/topiccomment.js
blob: 611b9d1ab5d825fa747ebe0b00946f7defb07d81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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');
      });
  });