Move static files out of pretix again, compile on setuptools build

This commit is contained in:
Raphael Michel
2016-02-16 16:42:02 +01:00
parent abe89039e4
commit f503d3f3f5
399 changed files with 30 additions and 5 deletions

View File

@@ -1,40 +0,0 @@
/*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();
});