[Web] Do not try to init spam slider as domain admin

master
andryyy 2021-08-04 12:41:01 +02:00
parent b54ec15850
commit fc8ac2de1f
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
1 changed files with 25 additions and 23 deletions

View File

@ -3,6 +3,7 @@ var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456
$(document).ready(function() { $(document).ready(function() {
// Spam score slider // Spam score slider
var spam_slider = $('#spam_score')[0]; var spam_slider = $('#spam_score')[0];
if (typeof spam_slider !== 'undefined') {
noUiSlider.create(spam_slider, { noUiSlider.create(spam_slider, {
start: user_spam_score, start: user_spam_score,
connect: [true, true, true], connect: [true, true, true],
@ -27,6 +28,7 @@ $(document).ready(function() {
$('.spam-reject-score').text('> ' + Math.round(values[1] * 10) / 10); $('.spam-reject-score').text('> ' + Math.round(values[1] * 10) / 10);
$('#spam_score_value').val((Math.round(values[0] * 10) / 10) + ',' + (Math.round(values[1] * 10) / 10)); $('#spam_score_value').val((Math.round(values[0] * 10) / 10) + ',' + (Math.round(values[1] * 10) / 10));
}); });
}
// syncjobLogModal // syncjobLogModal
$('#syncjobLogModal').on('show.bs.modal', function(e) { $('#syncjobLogModal').on('show.bs.modal', function(e) {
var syncjob_id = $(e.relatedTarget).data('syncjob-id'); var syncjob_id = $(e.relatedTarget).data('syncjob-id');