Move staticfiles and locale inside the package

This commit is contained in:
Raphael Michel
2016-02-16 16:08:37 +01:00
parent b36314b909
commit d4b3c9717c
1382 changed files with 224985 additions and 4 deletions

View File

@@ -0,0 +1,40 @@
/*global $*/
$(function () {
"use strict";
$("[data-formset]").formset(
{
animateForms: true,
reorderMode: 'animate'
}
);
$(document).on("click", ".variations .variations-select-all", function (e) {
$(this).parent().parent().find("input[type=checkbox]").prop("checked", true).change();
e.stopPropagation();
return false;
});
$(document).on("click", ".variations .variations-select-none", function (e) {
$(this).parent().parent().find("input[type=checkbox]").prop("checked", false).change();
e.stopPropagation();
return false;
});
if ($(".items-on-quota").length) {
$(".items-on-quota .panel").each(function () {
var $panel = $(this);
$panel.toggleClass("panel-success", $panel.find("input:checked").length > 0);
$(this).find("input").change(function () {
$panel.toggleClass("panel-success", $panel.find("input:checked").length > 0);
});
});
}
$("#sumtoggle").find("button").click(function () {
$(".table-product-overview .sum").toggle($(this).attr("data-target") === ".sum");
$("#sumtoggle").find("button").not($(this)).removeClass("active");
$(this).addClass("active");
$(".table-product-overview .count").toggle($(this).attr("data-target") === ".count");
});
$('.collapsible').collapse();
});