Browse Source

Corriger le mode full-screen :

- ajaxload async pour ne pas manger les touches saisies pendant ce temps la
- style du ajaxload pour vour la roue de chargement
3.1 v1.15.1
cedric@yterium.com 9 years ago
parent
commit
2a1e5c6690
  1. 21
      barre_outils_icones.css.html
  2. 9
      javascript/jquery.previsu_spip.js
  3. 2
      paquet.xml

21
barre_outils_icones.css.html

@ -4,4 +4,23 @@
[(#VAL|barre_outils_css_icones)]
/* roue ajax */
.ajaxLoad{background:white url('[(#CHEMIN{images/searching.gif}|url_absolue|protocole_implicite)]') top left no-repeat;}
.ajaxLoad{
position:relative;
}
.ajaxLoad:after {
content:"";
display:block;
width:40px;
height:40px;
border:1px solid #eee;
background:#fff url('[(#CHEMIN{images/searching.gif}|url_absolue|protocole_implicite)]') center no-repeat;
position:absolute;
left:50%;
top:50%;
margin-left:-20px;
margin-top:-20px;
}
.fullscreen .ajaxLoad:after {
position:fixed;
left:75%;
}

9
javascript/jquery.previsu_spip.js

@ -53,7 +53,7 @@
original_texte = texte;
}
var timerPreview=null;
mark.addClass('.livepreview').find('.markItUpEditor').bind('keyup click change focus refreshpreview',function(e){
mark.addClass('livepreview').find('.markItUpEditor').bind('keyup click change focus refreshpreview',function(e){
if (is_full_screen){
// Touche Echap pour sortir du mode fullscreen
if (e.type == 'keyup' && e.keyCode==27){
@ -85,7 +85,8 @@
renderPreview($(mark).find('.markItUpPreview').show().addClass('ajaxLoad'),
$(mark).find('textarea.pp_previsualisation').val(),
champ,
objet);
objet,
false);
return false;
});
@ -100,11 +101,11 @@
}
function renderPreview(node, val, champ, objet) {
function renderPreview(node, val, champ, objet, async) {
if (options.previewParserPath !== '') {
$.ajax( {
type: 'POST',
async: false,
async: typeof (async)=="undefined"?true:async,
url: options.previewParserPath,
data: 'champ='+champ
+'&objet='+objet

2
paquet.xml

@ -1,7 +1,7 @@
<paquet
prefix="porte_plume"
categorie="edition"
version="1.15.0"
version="1.15.1"
etat="stable"
compatibilite="[3.0.0;3.1.*]"
logo="images/porte-plume-32.png"

Loading…
Cancel
Save