Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed Bug #11416: Google Analytics Global Configuration is not being …
…used by survey dev Added the possibility to use Global, self-defined or non at all google analytics in a survey. Reused The buttongroup of Token/Bounce Settings dev Added some nice effect, hiding the disabled inputs
- Loading branch information
Markus Flür
committed
Jul 21, 2016
1 parent
70358e0
commit a88e4d9
Showing
6 changed files
with
133 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/** | ||
* This javascript show or hide the googleanalytics parameters in function of the Notification settings to be used | ||
* (None, use setting below, use global settings ) | ||
*/ | ||
function updateParameters() | ||
{ | ||
if ($('#googleanalyticsapikeysetting input:radio:checked').val()=='Y'){ | ||
$("#googleanalyticsstyle").find('label').removeClass('disabled'); | ||
$("#googleanalyticsstyle").closest('div.form-group').slideDown(400); | ||
|
||
$("#googleanalyticsapikey").removeAttr('disabled'); | ||
$("#googleanalyticsapikey").closest('div.form-group').slideDown(400); | ||
if($("#googleanalyticsapikey").val() == "9999useGlobal9999"){ | ||
$("#googleanalyticsapikey").val(""); | ||
} | ||
} | ||
else if($('#googleanalyticsapikeysetting input:radio:checked').val()=='N') | ||
{ | ||
$("#googleanalyticsstyle").val(0); | ||
$("#googleanalyticsstyle").find('label').addClass('disabled'); | ||
$("#googleanalyticsstyle").closest('div.form-group').slideUp(400); | ||
|
||
$("#googleanalyticsapikey").attr('disabled','disabled'); | ||
$("#googleanalyticsapikey").closest('div.form-group').slideUp(400); | ||
} | ||
else | ||
{ | ||
$("#googleanalyticsstyle").find('label').removeClass('disabled'); | ||
$("#googleanalyticsstyle").closest('div.form-group').slideDown(400); | ||
|
||
$("#googleanalyticsapikey").attr('disabled','disabled'); | ||
$("#googleanalyticsapikey").closest('div.form-group').slideUp(400); | ||
} | ||
} | ||
|
||
$(document).ready(function(){ | ||
updateParameters(); | ||
$("input:radio[id^='googleanalyticsapikeysetting']").on('change',function(){ | ||
updateParameters(); | ||
}); | ||
}); |
a88e4d9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be 'Fixed issue"