Vlad Kurkin (b_vladi) wrote in changelog,
Vlad Kurkin
b_vladi
changelog

[ljcom] r11577: LJSUP-11423: Need system message/warning...

Committer: vkurkin
LJSUP-11423: Need system message/warning/confirmation when user cancels promo
U   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

Tags: b_vladi, ljcom, local, tmpl, vkurkin
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments