12345678910111213141516171819202122232425262728293031323334 |
- <?php
-
-
- class post_confirmation extends plugins
- {
- public function post_confirmation()
- {
- $this->addAction('admin_includes', 'post_confirmation_script');
- }
-
- public function post_confirmation_script()
- {
- global $admin_includes,$isEdition;
- if (!$isEdition) {
- $admin_includes .= "
- <script type=\"text/javascript\">
- $(document).ready(function(){
- $('#publish').click( function(){
- return (confirm('".__("Do you realy want to publish this?")."'));
- });
- });
- </script>
- ";
- }
- }
- }
|