[Web] Do not try to init spam slider as domain admin
This commit is contained in:
parent
b54ec15850
commit
fc8ac2de1f
@ -3,6 +3,7 @@ var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456
|
||||
$(document).ready(function() {
|
||||
// Spam score slider
|
||||
var spam_slider = $('#spam_score')[0];
|
||||
if (typeof spam_slider !== 'undefined') {
|
||||
noUiSlider.create(spam_slider, {
|
||||
start: user_spam_score,
|
||||
connect: [true, true, true],
|
||||
@ -27,6 +28,7 @@ $(document).ready(function() {
|
||||
$('.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));
|
||||
});
|
||||
}
|
||||
// syncjobLogModal
|
||||
$('#syncjobLogModal').on('show.bs.modal', function(e) {
|
||||
var syncjob_id = $(e.relatedTarget).data('syncjob-id');
|
||||
|
Loading…
Reference in New Issue
Block a user