Skip to content

Commit

Permalink
Fixed issue #09560: "Bounce settings" changeable although "Use global…
Browse files Browse the repository at this point in the history
… settings" were chosen

Dev: really prefer to allow updating but ...
Dev: Review it for 2.06 (using of extension)
  • Loading branch information
Shnoulle committed Mar 31, 2015
1 parent c26f49a commit cd6d0ef
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions application/views/admin/token/bounce.php
@@ -1,3 +1,6 @@
<?php
App()->getClientScript()->registerScriptFile(Yii::app()->getConfig('adminscripts') . "tokenbounce.js");
?>
<div class='header ui-widget-header'><?php $clang->eT("Bounce settings"); ?></div>
<div id='bouncesettingsdiv'>
<?php echo CHtml::form(array("admin/tokens/sa/bouncesettings/surveyid/{$surveyid}"), 'post', array('id'=>'bouncesettings', 'name'=>'bouncesettings', 'class'=>'form30')); ?>
Expand Down
14 changes: 14 additions & 0 deletions scripts/admin/tokenbounce.js
@@ -0,0 +1,14 @@
$(document).on("change","#bounceprocessing",function(){
hideShowParameters();
});
$(document).ready(function() {
hideShowParameters();
});
function hideShowParameters(){
var disabled=$("#bounceprocessing").val()!="L";
$("#bounceaccounttype").prop("disabled",disabled);
$("#bounceaccounthost").prop("disabled",disabled);
$("#bounceaccountuser").prop("disabled",disabled);
$("#bounceaccountpass").prop("disabled",disabled);
$("#bounceaccountencryption").prop("disabled",disabled);
}

0 comments on commit cd6d0ef

Please sign in to comment.