Zum Inhalt springen

rgsendnews und mootools 1.2.1

Erstellt am 17. Juli 2009 · 1 Antwort · letzte Antwort am 17. Juli 2009

Tags: JavaScript & AJAX, Frage

lorrey ·

hallo,

ich hab eben gerade die neuste t3mootools ext installiert welche die mootools version 1.2.1 verwendet.

leider funktioniert jetzt die rgsendnews ext nicht mehr 🙁

kann mir jemand einen tipp geben was ich in js ändern muss, damit es auch mit der neuen mootools version läuft?

besten dank

lorrey ·

ich habs nun selbst hin bekommen - die send.js muss folg. angepasst werden:

$('rgsnform').addEvent('submit', function(e) {
		
	/**
	 * Prevent the submit event
	 */
	e.stop();
	
	/**
	 * This empties the log and shows the spinning indicator
	 */
	var log = $('log').empty().addClass('ajax-loading');

		
	/**
	 * send takes care of encoding and returns the Ajax instance.
	 * onComplete removes the spinner from the log.
	 */
	
	this.set('send', {onComplete: function(response) { 
		log.removeClass('ajax-loading');
		log.set('html', response);
		rgsnSlide.toggle();
	}});
	
	//Send the form.
	this.send();
});

});