All pastes #546460 Raw Edit

Unnamed

public php v1 · immutable
·published 2007-06-07 02:03 UTC
rendered paste body
var inputs = $$('form#qz_edit_form input');inputs.each( function(input) {	Event.observe(input, 'focus', function() {		input.setStyle({backgroundColor: '#f7ffaf'});	});		Event.observe(input, 'blur', function() {	qz_update(input);	});	Event.observe(input, 'keyup', function(e) {	if(e.keyCode == Event.KEY_RETURN) {		$('qz_title_input').blur();	}});});