Skip to content

Commit

Permalink
Dev Applied custom modifications to Yii 1.1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Jun 6, 2017
1 parent b86cf0b commit a7d44df
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion framework/web/widgets/captcha/CCaptcha.php
Expand Up @@ -128,7 +128,10 @@ public function registerClientScript()
$html=CHtml::button($label, $options);
else
$html=CHtml::link($label, $url, $options);
$js="jQuery('#$id').after(".CJSON::encode($html).");";

$js= "if(jQuery('#$id').next('input').length == 0){"
. "jQuery('#$id').after(".CJSON::encode($html).");
}";
$selector="#$buttonID";
}

Expand Down
6 changes: 5 additions & 1 deletion framework/zii/widgets/assets/gridview/jquery.yiigridview.js
Expand Up @@ -405,7 +405,11 @@
}
this.find('.' + settings.tableClass).children('tbody').children('tr').children('td').children('input[name="' + column_id + '"]').each(function (i) {
if (this.checked) {
checked.push(keys.eq(i).text());
var val = keys.eq(i).text();
if (val == '') {
val = $(this).val();
}
checked.push(val);
}
});
return checked;
Expand Down

0 comments on commit a7d44df

Please sign in to comment.