{* $Id$ *}
{jq}
$("#editItemForm{{$trackerEditFormId}}").validate({
	{{$validationjs}},
	ignore: '.ignore',
	submitHandler: function(){process_submit(this.currentForm);}
});
{/jq}
{jq}
process_submit = function(me) {
	if (!$(me).attr("is_validating")) {
		$(me).attr("is_validating", true);
		$(me).validate();
	}
	if ($(me).validate().pendingRequest > 0) {
		setTimeout(function() {process_submit(me);}, 500);
		return false;
	}
	$(me).attr("is_validating", false);
	me.submit();
};
{/jq}

{* $Id$ *}
{jq}
$("#editItemForm{{$trackerEditFormId}}").validate({
	{{$validationjs}},
	ignore: '.ignore',
	submitHandler: function(){process_submit(this.currentForm);}
});
{/jq}
{jq}
process_submit = function(me) {
	if (!$(me).attr("is_validating")) {
		$(me).attr("is_validating", true);
		$(me).validate();
	}
	if ($(me).validate().pendingRequest > 0) {
		setTimeout(function() {process_submit(me);}, 500);
		return false;
	}
	$(me).attr("is_validating", false);

	// disable submit button(s)
	$(me).find("input[type=submit]").attr("disable", true).css("opacity",0.5)
	me.submit();
};
{/jq}

Disable submit buttons on tracker forms after the form is submitted. Will stop duplicate items being added - requires feature_jquery_validation (thanks Xavi)
[ENH] trackers: Disable submit buttons on tracker forms after the form is submitted. Will stop duplicate items being added - requires feature_jquery_validation (thanks Xavi)

git-svn-id: a7fabbc6a7c54ea5c67cbd16bd322330fd10cc35@37810 b456876b-0849-0410-b77d-98878d47e9d5
