Vergleich jscripts/rating.js - 1.8.13 - 1.8.33

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 11Zeile 11
				elements.each(function()
{
var element = $(this);

				elements.each(function()
{
var element = $(this);

					element.click(function()

					element.on('click', function()

					{
var parameterString = element.attr("href").replace(/.*\?(.*)/, "$1");
return Rating.add_rating(parameterString);

					{
var parameterString = element.attr("href").replace(/.*\?(.*)/, "$1");
return Rating.add_rating(parameterString);

Zeile 83Zeile 83

rating_added: function(request, element_id)
{


rating_added: function(request, element_id)
{

		var json = $.parseJSON(request.responseText);

		var json = JSON.parse(request.responseText);

		if(json.hasOwnProperty("errors"))
{
$.each(json.errors, function(i, error)

		if(json.hasOwnProperty("errors"))
{
$.each(json.errors, function(i, error)