Committer: szhirkov
LJSUP-9642: Disable buttons Preview and PromoteU trunk/templates/Shop/SelfPromo.tmpl
Modified: trunk/templates/Shop/SelfPromo.tmpl =================================================================== --- trunk/templates/Shop/SelfPromo.tmpl 2011-08-31 05:02:25 UTC (rev 10943) +++ trunk/templates/Shop/SelfPromo.tmpl 2011-08-31 06:33:46 UTC (rev 10944) @@ -64,16 +64,16 @@ <div id="selfpromo-preview"></div> </div> <fieldset class="submit-options"> - <button type="button" id="selfpromo-preview-button">Preview</button> - <button type="submit" id="selfpromo-promote-button"><TMPL_VAR expr="ml('/shop/selfpromo.bml.btn.submit')"></button> + <button type="button" id="selfpromo-preview-button" disabled="disabled"><TMPL_VAR expr="ml('/shop/selfpromo.bml.btn.preview')"></button> + <button type="submit" id="selfpromo-promote-button" disabled="disabled"><TMPL_VAR expr="ml('/shop/selfpromo.bml.btn.submit')"></button> </fieldset> </div> </TMPL_UNLESS> <script type="text/javascript"> window.shop_selfpromo_ml = { - 'placeholder.entry_link' : "<TMPL_VAR expr="ml('/shop/selfpromo.bml.placeholder.entry_link')">", - 'price_placeholder' : "<TMPL_VAR expr="ml('/shop/selfpromo.bml.placeholder.price')">", + 'placeholder.entry_link': "<TMPL_VAR expr="ml('/shop/selfpromo.bml.placeholder.entry_link')">", + 'price_placeholder': "<TMPL_VAR expr="ml('/shop/selfpromo.bml.placeholder.price')">" }; jQuery(function($) { @@ -97,8 +97,8 @@ $.post( '/shop/selfpromo.bml', { - 'action' : 'preview', - 'entry_link' : $("#entry_link").val(), + 'action': 'preview', + 'entry_link': $("#entry_link").val() }, function(data) { if ( data.result == 'success' ) {