Displaying 1 result from an estimated 1 matches for "throw_msg".
Did you mean:
show_msg
2012 Jan 01
2
Calling a function inside of (function($) {})(jQuery);
I have a .js file with the following function
function set_priceKind_global(priceKind)
{
switch(priceKind)
{
case "paid":
case "free":
break;
default:
var throw_msg = "Internal confusion in set_priceKind_global"
alert(throw_msg)
throw throw_msg
}
It is triggered by
%input{''type'' => ''button'', ''value'' => ''Free'', :onclick => ''set_priceKind_global("free...