Skip to content

Instantly share code, notes, and snippets.

@incrize
Created March 28, 2016 12:54
Show Gist options
  • Save incrize/50cb2c37f7d5f603e986 to your computer and use it in GitHub Desktop.
Save incrize/50cb2c37f7d5f603e986 to your computer and use it in GitHub Desktop.
diff --git a/design/backend/templates/views/promotions/update.tpl b/design/backend/templates/views/promotions/update.tpl
index 4ac395d..b4259ed 100644
--- a/design/backend/templates/views/promotions/update.tpl
+++ b/design/backend/templates/views/promotions/update.tpl
@@ -178,7 +178,7 @@ function fn_promotion_rebuild_mixed_data(items, value, id, element_id, condition
}
}
} else {
- $('#mixed_input_' + id).val(element_id == l ? condition_value : '').show().prop('disabled', false).removeClass('hidden');
+ $('#mixed_input_' + id).val(element_id == k ? condition_value : '').show().prop('disabled', false).removeClass('hidden');
$('#mixed_select_' + id).hide().prop('disabled', true);
$('#mixed_ajax_select_' + id).parents('.cm-ajax-select-object').hide();
$('#mixed_input_' + id + '_name').val('').hide().prop('disabled', true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment