[ljcom] r11432: LJSUP-11193: Warnings should disappear w...
Committer: vkurkin
LJSUP-11193: Warnings should disappear when switching tabs in shopU trunk/templates/Shop/SelfPromo.tmpl
Modified: trunk/templates/Shop/SelfPromo.tmpl
===================================================================
--- trunk/templates/Shop/SelfPromo.tmpl 2012-02-08 13:34:07 UTC (rev 11431)
+++ trunk/templates/Shop/SelfPromo.tmpl 2012-02-08 13:57:59 UTC (rev 11432)
@@ -1,5 +1,3 @@
-<TMPL_INCLUDE name="templates/Shop/Error.tmpl">
-<div id="selfpromo-preview-errors" style="display: none;" class="errorbar"></div>
<TMPL_INCLUDE name="templates/Shop/Warnings.tmpl">
<div class="b-shop-intro b-selfpromo-intro">
@@ -27,6 +25,8 @@
</TMPL_IF>
</ul>
+ <TMPL_INCLUDE name="templates/Shop/Error.tmpl">
+ <div id="selfpromo-preview-errors" style="display: none;" class="errorbar"></div>
<ul class="b-wallet-tokens" id="mTabsShopContent">
<li class="b-wallet-tokens-item b-wallet-tokens-buy<TMPL_IF name='tab_entry_active'> current</TMPL_IF>">
<TMPL_LOOP entry>
@@ -47,6 +47,9 @@
<script type="text/javascript">
//<![CDATA[
- jQuery('#mTabsShop').tabsChanger('#mTabsShopContent');
+ jQuery('#mTabsShop').tabsChanger('#mTabsShopContent').find('li>a').click(function () {
+ jQuery('#selfpromo-preview-errors').hide();
+ jQuery('.errorbar.errorbar-from-reload').remove();
+ });
//]]>
</script>
\ No newline at end of file
