CC-2718: Changes to the support page
- "Help Airtime" button is enanbled solely depending on feedback checkbox when user already agreed to Terms and condition
This commit is contained in:
parent
4c4b57fd31
commit
405edcc5fa
|
@ -172,7 +172,7 @@
|
||||||
<?php echo $this->element->getElement('Privacy')->getLabel() ?>
|
<?php echo $this->element->getElement('Privacy')->getLabel() ?>
|
||||||
</label>
|
</label>
|
||||||
<?php }else{?>
|
<?php }else{?>
|
||||||
<a id="link_to_privacy" href="http://www.sourcefabric.org/en/about/policy/" onclick="window.open(this.href); return false;">Terms and Conditions</a>
|
<a id="link_to_terms_and_condition" href="http://www.sourcefabric.org/en/about/policy/" onclick="window.open(this.href); return false;">Terms and Conditions</a>
|
||||||
<?php }?>
|
<?php }?>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -172,7 +172,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php }else{?>
|
<?php }else{?>
|
||||||
<a id="link_to_privacy" href="http://www.sourcefabric.org/en/about/policy/" onclick="window.open(this.href); return false;">Terms and Conditions</a>
|
<a id="link_to_terms_and_condition" href="http://www.sourcefabric.org/en/about/policy/" onclick="window.open(this.href); return false;">Terms and Conditions</a>
|
||||||
<?php }?>
|
<?php }?>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
|
@ -36,7 +36,12 @@ $(document).ready(function(){
|
||||||
});
|
});
|
||||||
|
|
||||||
var button = $("#help_airtime");
|
var button = $("#help_airtime");
|
||||||
|
|
||||||
|
if($("#link_to_terms_and_condition").length > 0 ){
|
||||||
|
button.removeAttr('disabled').removeClass('ui-state-disabled');
|
||||||
|
}else{
|
||||||
button.attr('disabled', 'disabled' ).addClass('ui-state-disabled');
|
button.attr('disabled', 'disabled' ).addClass('ui-state-disabled');
|
||||||
|
}
|
||||||
dialog.dialog('open');
|
dialog.dialog('open');
|
||||||
|
|
||||||
|
|
||||||
|
@ -57,7 +62,7 @@ $(document).ready(function(){
|
||||||
button.attr('disabled', 'disabled' ).addClass('ui-state-disabled');
|
button.attr('disabled', 'disabled' ).addClass('ui-state-disabled');
|
||||||
}else{
|
}else{
|
||||||
pub.removeAttr("disabled");
|
pub.removeAttr("disabled");
|
||||||
if(privacy.is(':checked')){
|
if(privacy.length == 0 || privacy.is(':checked')){
|
||||||
button.removeAttr('disabled').removeClass('ui-state-disabled');
|
button.removeAttr('disabled').removeClass('ui-state-disabled');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -85,7 +90,7 @@ $(document).ready(function(){
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if($("#SupportFeedback").is(':checked') && $("#Privacy").is(':checked')){
|
if($("#SupportFeedback").is(':checked') && ($("#Privacy").length == 0 || $("#Privacy").is(':checked'))){
|
||||||
button.removeAttr('disabled').removeClass('ui-state-disabled');
|
button.removeAttr('disabled').removeClass('ui-state-disabled');
|
||||||
}else{
|
}else{
|
||||||
button.attr('disabled', 'disabled' ).addClass('ui-state-disabled');
|
button.attr('disabled', 'disabled' ).addClass('ui-state-disabled');
|
||||||
|
|
Loading…
Reference in New Issue