Benutzer:J*/Feedbackknopf-Entwurf
< Benutzer:J*
Zur Navigation springen
Zur Suche springen
Version vom 11. Oktober 2011, 18:39 Uhr von J* (Diskussion | Beiträge)
jQuery("#p-views ul").append("
"); jQuery("body").append("
"); jQuery("body").append("
");
jQuery("#fb_reset").click( function () {
jQuery("#f_b_background, #f_b").hide();
});
jQuery("#fb_form").submit( function () {
window.fb_data = { url: "/api.php", data: { action: "edit", title: wgFormattedNamespaces[wgNamespaceNumber+1]+":"+wgTitle, summary: "Kurzfeedback", appendtext: "
45px "+jQuery("#fb_form select").val()+" | "+jQuery("#fb_form textarea").val()+" |
"
}, success: function () { jQuery("#f_b_background, #f_b").hide(); }, type: 'POST' }; jQuery.ajax({ cache: false, url: "/api.php", data: { format: "xml", action: "query", prop: "info", intoken: "edit", titles: wgFormattedNamespaces[wgNamespaceNumber+1]+":"+wgTitle }, type: 'GET', success: function(tr) { var token = jQuery(tr).find("api query pages page").attr('edittoken'); fb_data.data.token = token; jQuery.ajax(fb_data); } }); return false;
} );
jQuery("#ca-feedback").click(function () {
jQuery("#f_b_background, #f_b").show();
})