CC-2425:Tweaks to phone home metrics
- In order for the user to click the "Yes, Help Airtime" button, both "send support feedback" AND "privacy policy" should be checked
This commit is contained in:
parent
f8a1990ec1
commit
2163efc1be
|
@ -1,5 +1,6 @@
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
var dialogGlob;
|
var dialogGlob;
|
||||||
|
|
||||||
$.get("/Preference/register", {format:"json"}, function(json){
|
$.get("/Preference/register", {format:"json"}, function(json){
|
||||||
var dialog = $(json.dialog);
|
var dialog = $(json.dialog);
|
||||||
dialogGlob = dialog;
|
dialogGlob = dialog;
|
||||||
|
@ -51,12 +52,18 @@ $(document).ready(function(){
|
||||||
|
|
||||||
$("#SupportFeedback").live('click', function(){
|
$("#SupportFeedback").live('click', function(){
|
||||||
var pub = $("#Publicise");
|
var pub = $("#Publicise");
|
||||||
|
var privacy = $("#Privacy");
|
||||||
|
var button = $("#help_airtime");
|
||||||
if( !$(this).is(':checked') ){
|
if( !$(this).is(':checked') ){
|
||||||
pub.removeAttr("checked");
|
pub.removeAttr("checked");
|
||||||
pub.attr("disabled", true);
|
pub.attr("disabled", true);
|
||||||
$("#public-info").hide();
|
$("#public-info").hide();
|
||||||
|
button.attr('disabled', 'disabled' ).addClass('ui-state-disabled');
|
||||||
}else{
|
}else{
|
||||||
pub.removeAttr("disabled");
|
pub.removeAttr("disabled");
|
||||||
|
if(privacy.is(':checked')){
|
||||||
|
button.removeAttr('disabled').removeClass('ui-state-disabled');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -69,8 +76,9 @@ $(document).ready(function(){
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#Privacy").live('click', function(){
|
$("#Privacy").live('click', function(){
|
||||||
|
var support = $("#SupportFeedback");
|
||||||
var button = $("#help_airtime");
|
var button = $("#help_airtime");
|
||||||
if($(this).is(':checked')){
|
if($(this).is(':checked') && support.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