Commit db3c0f3eb5ee773727602a92485d2dd60167860f

  • avatar
  • Ajay <ajay @serv…ots.com>
  • Thu Jan 12 20:45:54 IST 2012
form correction
  
16391639 pubLabel.setAttribute("id", "check-box");
16401640 pubLabel.setAttribute("alipielements", "alipi");
16411641 pubLabel.setAttribute("type", "checkbox");
1642 pubLabel.setAttribute("value", true);
1642 pubLabel.setAttribute("name","msgcheckbox");
16431643 pubLabel.setAttribute("style", "margin-top:20px;");
16441644 msg.appendChild(pubLabel);
16451645 };
16551655 $("#msgoverlay").remove();
16561656 },
16571657 buttons: {
1658 OK: function() {
1659 // hide();
1658 OK: function() { hide();
16601659 $("#msgoverlay").remove();
16611660 }
16621661 }
16701670 if (allCookies.indexOf('m4.show.redbar.overlay=no') == -1) {
16711671 display();
16721672 } else {
1673 $("#msgoverlay").remove();
1673 hide();
16741674 }
16751675
16761676 };
16771677
16781678 function hide() {
1679 if (document.getElementById("check-box").checked == true) {
1679 if (document.getElementById("check-box").checked) {
16801680 document.cookie ='m4.show.redbar.overlay=no;'
16811681 } else {
1682 var date = new Date();
1683 document.cookie ='m4.show.redbar.overlay=no;expires=' + date.toUTCString() + ';';
1682 // var date = new Date();
1683 // document.cookie ='m4.show.redbar.overlay=no;expires=' + date.toUTCString() + ';';
1684 $("#msgoverlay").hide();
16841685 }
16851686 };
16861687 } ;
17761776
17771777 this.activate = function activate() {
17781778 $(function() {
1779 $( "#targetoverlay" ).dialog( "destroy" );
1780
17811779 $( "#targetoverlay" ).dialog({
17821780 height:500,
17831781 width:500,
17871787 }
17881788 },
17891789 close: function() {
1790 $( "#targetoverlay" ).remove();
1790 $( "#targetoverlay" ).hide();
17911791 }
17921792 });
17931793 });
28892889
28902890
28912891 this.blogpost = function blogpost() {
2892 if (locName.value == "" || langName.value == "" || styleSelect.value == "" || author.value == "" || (ourcheck.checked == false && yourcheck.checked == false)) {
2893 alert("Please give all the details, it will be used further");
2894 } else {
28922895 pageEditor.commandPublish();
2893 // this.disabled=true;
28942896 $('#targetoverlay').remove();
28952897 pageEditor.showMessage("... Please wait, your blog is being posted");
2898 }
28962899 };
28972900 // End of okButton function
28982901
30943094 break;
30953095 case 'AUDIO_SRC_UPDATE':
30963096 textElementPopup.hasAudio = true;
3097 command.previousData = "";
30973098 pageEditor.showMessage('Audio updated');
30983099 break;
30993100
32113211 break;
32123212
32133213 case 'AUDIO_SRC_UPDATE':
3214 command.element.remove();
3215 pageEditor.showMessage('Link removed');
32143216 break;
32153217 case 'ANCHOR_UPDATE':
32163218 command.element.setAttribute('href', command.previousData);