mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Allow to generate random slugs
This commit is contained in:
@@ -102,6 +102,15 @@ $(function () {
|
||||
question_page_toggle_view();
|
||||
}
|
||||
|
||||
// Event wizard
|
||||
$("#event-slug-random-generate").click(function () {
|
||||
var url = $(this).attr("data-rng-url");
|
||||
$("#id_basics-slug").val("Generating...");
|
||||
$.getJSON(url, function (data) {
|
||||
$("#id_basics-slug").val(data.slug);
|
||||
});
|
||||
});
|
||||
|
||||
// Vouchers
|
||||
$("#voucher-bulk-codes-generate").click(function () {
|
||||
var num = $("#voucher-bulk-codes-num").val();
|
||||
|
||||
@@ -151,3 +151,6 @@ pre.mail-preview {
|
||||
width: 1% !important;
|
||||
}
|
||||
}
|
||||
.input-group-btn .btn {
|
||||
padding-bottom: 7px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user