Changeset 96125 in spip-zone


Ignore:
Timestamp:
Mar 21, 2016, 5:55:40 PM (3 years ago)
Author:
brunobergot@…
Message:

report de r93291

il ne faut pas faire une alerte si c'est le form de forum en dessous de la previsu qu'on submit a nouveau

cf https://core.spip.net/issues/3515

Location:
_core_/branches/spip-3.0/plugins/forum
Files:
2 edited

Legend:

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

    r66093 r96125  
    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                confirm_quit=false;
     35        });
    3236});}
    3337/*]]>*/</script>
  • _core_/branches/spip-3.0/plugins/forum/paquet.xml

    r92513 r96125  
    22        prefix="forum"
    33        categorie="communication"
    4         version="1.8.41"
     4        version="1.8.42"
    55        etat="stable"
    66        compatibilite="[3.0.0;3.0.*]"
Note: See TracChangeset for help on using the changeset viewer.