Changeset 5694 in spip-zone


Ignore:
Timestamp:
Sep 26, 2006, 10:51:12 AM (15 years ago)
Author:
bertrand@…
Message:

Retour a spip , le retour sans reload toute la page mais en la refabriquant

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/_test_/boutonstexte/boutonstexte.js

    r5693 r5694  
    3535{
    3636        var that = this;
     37        var texte = $(elt).ancestors(".texte");
    3738        if (this['backTextOnly']) {
    38                 window.location = window.location;
     39                texte.next().show().prev().insertBefore($("#marktextonly")).find("button.textonly").attr({ 'title': that.txtOnly, 'alt': that.txtOnly });
     40                $("#marktextonly").remove();
     41                this.backTextOnly = false;
    3942                return;
    4043        }
    41         $(elt).ancestors(".texte").prependTo("body").next().hide();
    42         $("button.textonly").attr({ title: that.txtBackSpip, alt: that.txtBackSpip });
     44        texte.after('<div id="marktextonly">marktextonly</div>');
     45        texte.prependTo("body").next().hide().prev().find("button.textonly").attr({ 'title': that.txtBackSpip, 'alt': that.txtBackSpip });
    4346        this.backTextOnly = true;
    4447}
Note: See TracChangeset for help on using the changeset viewer.