ADD avancement sur les trolls, partie d'administration terminé
[euphorik.git] / js / pageAdmin.js
index 9be3ca1..4c34f58 100644 (file)
@@ -208,14 +208,14 @@ Trolls.prototype.rafraichirTrolls = function()
                         {
                            $("span", troll).css("display", "none")
                            $(troll).append(
-                              '<form><p><input class="content" type="text" size="50" maxlength="500" value="' + $(".content", troll).html() + '"></input><button class="modifier">modifier</button><button class="annuler">annuler</button></p></form>'
+                              '<form><p><input class="content" type="text" size="50" maxlength="500" value="' + $(".content", troll).html() + '"></input><span class="modifier">modifier</span><span class="annuler">annuler</span></p></form>'
                            )
                            var virerLeFormulaire = function()
                            {
                               $("form", troll).remove()
                               $("span", troll).css("display", "inline")
                            }
-                           $("button.modifier", troll).click(
+                           $("span.modifier", troll).click(
                               function()
                               {
                                  var content = $("form input.content", troll).val()
@@ -223,7 +223,7 @@ Trolls.prototype.rafraichirTrolls = function()
                                  thisTrolls.modifier(id, content)
                               }
                            )
-                           $("button.annuler", troll).click( virerLeFormulaire )
+                           $("span.annuler", troll).click( virerLeFormulaire )
                            $("form", troll).submit(function(){ return false})
                         }  
                      )