Changeset 93291 in spip-zone


Ignore:
Timestamp:
Nov 29, 2015, 11:57:17 AM (4 years ago)
Author:
cedric@…
Message:

Fix https://core.spip.net/issues/3515 : il ne faut pas faire une alerte si c'est le form de forum en dessous de la previsu qu'on submit a nouveau

Location:
_core_/plugins/forum
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _core_/plugins/forum/formulaires/inc-forum_previsu.html

    r66095 r93291  
    2828<script type="text/javascript">/*<![CDATA[*/
    2929if (window.jQuery){ jQuery(function(){
    30         jQuery(window).unload(function() { alert('<:forum:forum_attention_message_non_poste|texte_script:>');jQuery(window).unbind();});
    31         jQuery(window).on('beforeunload', function(){           jQuery(window).unbind();return '<:forum:forum_attention_message_non_poste|texte_script:>';      });
     30        var confirm_quit = true;
     31        jQuery(window).unload(function() { if (confirm_quit) alert('<:forum:forum_attention_message_non_poste|texte_script:>');jQuery(window).unbind();});
     32        jQuery(window).on('beforeunload', function(e){ jQuery(window).unbind();if (!confirm_quit) return;e.returnValue='<:forum:forum_attention_message_non_poste|texte_script:>';return e.returnValue; });
     33        jQuery('fieldset.previsu').closest('form').next('form').bind('submit',function(){
     34                console.log('submit');
     35                confirm_quit=false;})
    3236});}
    3337/*]]>*/</script>
  • _core_/plugins/forum/paquet.xml

    r92554 r93291  
    22        prefix="forum"
    33        categorie="communication"
    4         version="1.9.31"
     4        version="1.9.32"
    55        etat="stable"
    66        compatibilite="[3.0.0;3.1.*]"
Note: See TracChangeset for help on using the changeset viewer.