Difference between revisions of "Showsave"

From SmartWiki
Jump to: navigation, search
Line 4: Line 4:
 
<pre>
 
<pre>
 
function savefunc(){
 
function savefunc(){
showsave();
+
showsave();
return true;
+
return true;
 
}
 
}
 
</pre>
 
</pre>
Line 11: Line 11:
 
<pre>
 
<pre>
 
function sbfunc(){
 
function sbfunc(){
    showsave("Saving Census Check List");
+
showsave("Saving Census Check List");
return true;
+
return true;
 
}
 
}
 
</pre>
 
</pre>

Revision as of 11:40, 4 October 2013

Template:UnderConstruction The showsave() is a function, which allows you to show the "Save in Progress" animation after the record is saved, in case it would not be shown otherwise.
It can be placed in the savefunc() or the sbfunc() functions, used in Special - Browser Script type custum field.

function savefunc(){
	showsave();
	return true;
}

The function takes one optional parameter, the message to be shown.

function sbfunc(){
	showsave("Saving Census Check List");
	return true;
}