Vorlage:Feedback: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Die Seite wurde neu angelegt: „ {{#tag:html | {{#tag:button | Finde ich gut! | onclick="like(this, '{{{1}}}', '{{{2}}}')" | class="btn" }} {{#tag:script | function like(object, thema,…“) |
|||
(16 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
+ | {{#tag:html | | ||
− | |||
+ | {{{1}}} | ||
+ | {{#tag:button | Finde ich gut! <span class="tooltiptext">Senden Sie dem Entwickler anonym ein motiverendes Dankeschön!</span> | onclick="like(this, '{{{1}}}', '{{{2}}}')" | class="dankebtn" }} | ||
− | |||
{{#tag:script | | {{#tag:script | | ||
+ | |||
Zeile 11: | Zeile 13: | ||
function like(object, thema, author) | function like(object, thema, author) | ||
{ | { | ||
− | if ( ! $(object).hasClass(' | + | if ( ! $(object).hasClass('dankebtn2')) |
{ | { | ||
$.get( "feedback.php", { text:thema, d:author } ).done(function( data ) { | $.get( "feedback.php", { text:thema, d:author } ).done(function( data ) { | ||
− | $(object).html(' | + | $(object).html(' Schön, dass Ihnen die Funktion gefällt. '); |
− | $(object).addClass(' | + | $(object).addClass('dankebtn2'); |
}); | }); | ||
} | } |
Aktuelle Version vom 1. Juli 2016, 13:44 Uhr
{{{1}}}