Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Defacepocalypse] De-deface product properties index #4074

Merged
merged 11 commits into from
Aug 28, 2019
14 changes: 7 additions & 7 deletions app/views/spree/admin/product_properties/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@
$("input#product_inherits_properties").change ->
$("#inherited_properties").toggle $(this).is(':checked')

= javascript_tag do
:javascript
var properties = #{raw(@properties.to_json)};
HugsDaniel marked this conversation as resolved.
Show resolved Hide resolved

console.log(properties)
HugsDaniel marked this conversation as resolved.
Show resolved Hide resolved
$("#product_properties input.autocomplete").live("keydown", function(){
already_auto_completed = $(this).is('ac_input');
if (!already_auto_completed) {
$(this).autocomplete({source: properties});
$(this).focus();
}
already_auto_completed = $(this).is('ac_input');
if (!already_auto_completed) {
$(this).autocomplete({source: properties});
$(this).focus();
}
});