Difference between revisions of "Showsave"
From SmartWiki
Line 2: | Line 2: | ||
The '''showsave()''' is a [[Category:JavaScript|javascript]] function, which allows you to show the "Save in Progress" animation after the record is saved, in case it would not be shown otherwise.<br /> | The '''showsave()''' is a [[Category:JavaScript|javascript]] function, which allows you to show the "Save in Progress" animation after the record is saved, in case it would not be shown otherwise.<br /> | ||
It can be placed in the [[Savefunc|savefunc()]] or the [[sbfunc|sbfunc()]] functions, used in [[Custom Field Type: Special – Browser Script|Special - Browser Script]] type custum field.<br /> | It can be placed in the [[Savefunc|savefunc()]] or the [[sbfunc|sbfunc()]] functions, used in [[Custom Field Type: Special – Browser Script|Special - Browser Script]] type custum field.<br /> | ||
+ | ==Syntax== | ||
+ | showsave([msg]);<br /> | ||
+ | '''Where''': | ||
+ | * ''msg'' is the message [optional].<br /><br /> | ||
+ | '''Examples:''' | ||
+ | The function called without parameter in the savefunc: | ||
<pre> | <pre> | ||
function savefunc(){ | function savefunc(){ | ||
Line 8: | Line 14: | ||
} | } | ||
</pre> | </pre> | ||
− | The function | + | |
+ | The function called with the ''optional parameter'', the '''message''' to be shown:<br /> | ||
<pre> | <pre> | ||
function sbfunc(){ | function sbfunc(){ |
Revision as of 11:02, 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.
Syntax
showsave([msg]);
Where:
- msg is the message [optional].
Examples: The function called without parameter in the savefunc:
function savefunc(){ showsave(); return true; }
The function called with the optional parameter, the message to be shown:
function sbfunc(){ showsave("Saving Check List"); return true; }