diff options
author | supriya <supriya@dragbox.(none)> | 2012-08-10 12:29:36 +0530 |
---|---|---|
committer | supriya <supriya@dragbox.(none)> | 2012-08-10 12:29:36 +0530 |
commit | effc9ec794486e4551890f62e710b88843abfc00 (patch) | |
tree | dc5cc34d1366b819525107c18bcc6d924a82bcbd /gstudio/static | |
parent | 1b253158044231e206429779758c30067803b17e (diff) | |
download | gnowsys-effc9ec794486e4551890f62e710b88843abfc00.tar.gz |
submit button removed
Diffstat (limited to 'gstudio/static')
-rw-r--r-- | gstudio/static/gstudio/js/addcontent.js | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/gstudio/static/gstudio/js/addcontent.js b/gstudio/static/gstudio/js/addcontent.js index 9581aeb..fe4f51c 100644 --- a/gstudio/static/gstudio/js/addcontent.js +++ b/gstudio/static/gstudio/js/addcontent.js @@ -19,6 +19,8 @@ var org_data = $("#gnoweditor").val(); document.getElementById("orgpage").value = org_data; var encode_data = encodeURIComponent(org_data); + $('#submitsec').trigger('click'); + }); $("#pagecontent1").one("click",function() { @@ -26,10 +28,12 @@ document.getElementById('gnoweditor').style.visibility="visible"; $("#gnoweditor").orgitdown(mySettings); }); - $("#save").one("click",function() { - var org_data = $("#gnoweditor").val(); + $("#save1").one("click",function() { + var org_data = $("#gnoweditor").val(); document.getElementById("orgpage1").value = org_data; var encode_data = encodeURIComponent(org_data); + $('#submitpage').trigger('click'); + }); $("#editseccontent").one("click",function(){ $("#chart").hide(); @@ -40,6 +44,9 @@ var screenTop = $(document).scrollTop(); $(".orgitdownContainer").css({ "margin-top":screenTop,}); + $("#savesubsec").hide(); + $("#savesubsec1").hide(); + $("#savepagecontent").hide(); }); $("#saveseccontent").one("click",function(){ @@ -86,6 +93,9 @@ var screenTop = $(document).scrollTop(); $(".orgitdownContainer").css({ "margin-top":screenTop,}); + $("#savesubsec").hide(); + $("#saveseccontent").hide(); + $("#savepagecontent").hide(); }); $("#savesubsec1").one("click",function(){ @@ -125,22 +135,19 @@ }); $("#editpagecontent").one("click",function(){ - //var abc = document.getElementById('pageid1').value; - //window.location.replace('sectionadd1/'+abc); - $("#chart").hide(); - // var orgdata = document.getElementById('orgcontent').value; + $("#chart").hide(); document.getElementById('gnoweditor').style.visibility="visible"; $("#gnoweditor").orgitdown(mySettings); - - // var org_data = $("#gnoweditor").val(); - var a = document.getElementById('pageorg').value; $("#gnoweditor").val(a); var screenTop = $(document).scrollTop(); $(".orgitdownContainer").css({ "margin-top":screenTop,}); - + $("#saveseccontent").hide(); + $("#savesubsec").hide(); + $("#savesubsec1").hide(); + }); $("#savepagecontent").one("click",function(){ @@ -189,12 +196,15 @@ var screenTop = $(document).scrollTop(); $(".orgitdownContainer").css({ "margin-top":screenTop,}); + $("#savesubsec1").hide(); + $("#saveseccontent").hide(); + $("#savepagecontent").hide(); }); $("#savesubsec").one("click",function() { var org_data = $("#gnoweditor").val(); document.getElementById("sectionreply").value = org_data; var encode_data = encodeURIComponent(org_data); - alert(org_data);}); + $('#submitsubsec').trigger('click');}); $("#savecontent").one("click",function() { var org_data = $("#gnoweditor").val(); |