Commit db3c0f3eb5ee773727602a92485d2dd60167860f
- Diff rendering mode:
- inline
- side by side
server/wsgi/page_edit.js
(15 / 11)
  | |||
1639 | 1639 | pubLabel.setAttribute("id", "check-box"); | |
1640 | 1640 | pubLabel.setAttribute("alipielements", "alipi"); | |
1641 | 1641 | pubLabel.setAttribute("type", "checkbox"); | |
1642 | pubLabel.setAttribute("value", true); | ||
1642 | pubLabel.setAttribute("name","msgcheckbox"); | ||
1643 | 1643 | pubLabel.setAttribute("style", "margin-top:20px;"); | |
1644 | 1644 | msg.appendChild(pubLabel); | |
1645 | 1645 | }; | |
… | … | ||
1655 | 1655 | $("#msgoverlay").remove(); | |
1656 | 1656 | }, | |
1657 | 1657 | buttons: { | |
1658 | OK: function() { | ||
1659 | // hide(); | ||
1658 | OK: function() { hide(); | ||
1660 | 1659 | $("#msgoverlay").remove(); | |
1661 | 1660 | } | |
1662 | 1661 | } | |
… | … | ||
1670 | 1670 | if (allCookies.indexOf('m4.show.redbar.overlay=no') == -1) { | |
1671 | 1671 | display(); | |
1672 | 1672 | } else { | |
1673 | $("#msgoverlay").remove(); | ||
1673 | hide(); | ||
1674 | 1674 | } | |
1675 | 1675 | ||
1676 | 1676 | }; | |
1677 | 1677 | ||
1678 | 1678 | function hide() { | |
1679 | if (document.getElementById("check-box").checked == true) { | ||
1679 | if (document.getElementById("check-box").checked) { | ||
1680 | 1680 | document.cookie ='m4.show.redbar.overlay=no;' | |
1681 | 1681 | } 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(); | ||
1684 | 1685 | } | |
1685 | 1686 | }; | |
1686 | 1687 | } ; | |
… | … | ||
1776 | 1776 | ||
1777 | 1777 | this.activate = function activate() { | |
1778 | 1778 | $(function() { | |
1779 | $( "#targetoverlay" ).dialog( "destroy" ); | ||
1780 | |||
1781 | 1779 | $( "#targetoverlay" ).dialog({ | |
1782 | 1780 | height:500, | |
1783 | 1781 | width:500, | |
… | … | ||
1787 | 1787 | } | |
1788 | 1788 | }, | |
1789 | 1789 | close: function() { | |
1790 | $( "#targetoverlay" ).remove(); | ||
1790 | $( "#targetoverlay" ).hide(); | ||
1791 | 1791 | } | |
1792 | 1792 | }); | |
1793 | 1793 | }); | |
… | … | ||
2889 | 2889 | ||
2890 | 2890 | ||
2891 | 2891 | 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 { | ||
2892 | 2895 | pageEditor.commandPublish(); | |
2893 | // this.disabled=true; | ||
2894 | 2896 | $('#targetoverlay').remove(); | |
2895 | 2897 | pageEditor.showMessage("... Please wait, your blog is being posted"); | |
2898 | } | ||
2896 | 2899 | }; | |
2897 | 2900 | // End of okButton function | |
2898 | 2901 | ||
… | … | ||
3094 | 3094 | break; | |
3095 | 3095 | case 'AUDIO_SRC_UPDATE': | |
3096 | 3096 | textElementPopup.hasAudio = true; | |
3097 | command.previousData = ""; | ||
3097 | 3098 | pageEditor.showMessage('Audio updated'); | |
3098 | 3099 | break; | |
3099 | 3100 | ||
… | … | ||
3211 | 3211 | break; | |
3212 | 3212 | ||
3213 | 3213 | case 'AUDIO_SRC_UPDATE': | |
3214 | command.element.remove(); | ||
3215 | pageEditor.showMessage('Link removed'); | ||
3214 | 3216 | break; | |
3215 | 3217 | case 'ANCHOR_UPDATE': | |
3216 | 3218 | command.element.setAttribute('href', command.previousData); |