Skip to content

Commit

Permalink
fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sylingd committed Sep 7, 2017
1 parent 9463f97 commit db5f545
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/manage.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ $('#rulesList').on('click', '.j_edit', function() {
$('#ruleType').attr('disabled', 'true');
$('#matchType').find('option[value="' + rule.matchType + '"]').prop('selected', true);
$('#isFunction').find('option[value="' + rule.isFunction + '"]').prop('selected', true);
if (isFunction) {
if (rule.isFunction) {
$('#custom-code').val(rule.code);
} else {
if (rule.ruleType === 'redirect') {
Expand Down

0 comments on commit db5f545

Please sign in to comment.