Committer: vkurkin
LJSUP-11423: Need system message/warning/confirmation when user cancels promoU trunk/htdocs/shop/selfpromo.bml.text.local U trunk/templates/Shop/SelfPromo.tmpl
Modified: trunk/htdocs/shop/selfpromo.bml.text.local =================================================================== --- trunk/htdocs/shop/selfpromo.bml.text.local 2012-03-12 14:23:22 UTC (rev 11576) +++ trunk/htdocs/shop/selfpromo.bml.text.local 2012-03-12 14:59:51 UTC (rev 11577) @@ -183,3 +183,4 @@ .your.journal.could.be.here=Your journal could be here .your.community.could.be.here=Your community could be here +.confirm.cancel.text=Are you sure? Money will not be returned \ No newline at end of file Modified: trunk/templates/Shop/SelfPromo.tmpl =================================================================== --- trunk/templates/Shop/SelfPromo.tmpl 2012-03-12 14:23:22 UTC (rev 11576) +++ trunk/templates/Shop/SelfPromo.tmpl 2012-03-12 14:59:51 UTC (rev 11577) @@ -51,5 +51,9 @@ jQuery('#selfpromo-preview-errors').hide(); jQuery('.errorbar.errorbar-from-reload').remove(); }); + + jQuery('#mTabsShopContent form[name=withdraw]').bind('submit', function () { + return confirm('<TMPL_VAR expr="ml('/shop/selfpromo.bml.confirm.cancel.text')">'); + }); //]]> </script> \ No newline at end of file