mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Auth mechanism
This commit is contained in:
14
src/pretix/static/pretixcontrol/js/ui/devices.js
Normal file
14
src/pretix/static/pretixcontrol/js/ui/devices.js
Normal file
@@ -0,0 +1,14 @@
|
||||
/*globals $, Morris, gettext, RRule, RRuleSet*/
|
||||
|
||||
$(function () {
|
||||
var update = function () {
|
||||
$.getJSON(location.href + '?ajax=true', {}, function (data) {
|
||||
if (data.initialized) {
|
||||
location.reload();
|
||||
} else {
|
||||
window.setTimeout(update, 500);
|
||||
}
|
||||
});
|
||||
};
|
||||
window.setTimeout(update, 500);
|
||||
});
|
||||
@@ -366,6 +366,16 @@ var form_handlers = function (el) {
|
||||
el.find("input[name=basics-slug]").bind("keyup keydown change", function () {
|
||||
$(this).closest(".form-group").find(".slug-length").toggle($(this).val().length > 16);
|
||||
});
|
||||
|
||||
el.find("script[data-replace-with-qr]").each(function () {
|
||||
var $div = $("<div>");
|
||||
$div.insertBefore($(this));
|
||||
$div.qrcode(
|
||||
{
|
||||
text: $(this).html()
|
||||
}
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
$(function () {
|
||||
|
||||
Reference in New Issue
Block a user