Removed multi-dimensional item variations [backwards-incompatible]

This commit is contained in:
Raphael Michel
2015-12-13 15:03:56 +01:00
parent bc13ba9517
commit f748752391
36 changed files with 616 additions and 2019 deletions

View File

@@ -3,27 +3,12 @@
$(function () {
"use strict";
var nested_formset_config = {
form: '[data-nested-formset-form]',
emptyForm: 'script[type=form-template][data-nested-formset-empty-form]',
body: '[data-nested-formset-body]',
add: '[data-nested-formset-add]',
deleteButton: '[data-nested-formset-delete-button]',
moveUpButton: '[data-nested-formset-move-up-button]',
moveDownButton: '[data-nested-formset-move-down-button]',
animateForms: true,
reorderMode: 'animate',
empty_prefix: '__inner_prefix__'
};
$("[data-formset]").formset(
{
animateForms: true,
reorderMode: 'animate'
}
).on("formAdded", "[data-formset-form]", function () {
$(this).find(".nested-formset").formset(nested_formset_config);
});
$(".nested-formset").formset(nested_formset_config);
);
$(document).on("click", ".variations .variations-select-all", function (e) {
$(this).parent().parent().find("input[type=checkbox]").prop("checked", true).change();
e.stopPropagation();