fix whitespaces (tabs) in javascript

This commit is contained in:
Milan
2019-10-05 17:15:50 +02:00
parent a80afcad99
commit 4cc6f7ba8c
17 changed files with 1171 additions and 1173 deletions

View File

@@ -1,11 +1,11 @@
/*
show a series, its template, users and events
show a series, its template, users and events
*/
// set checkbox values checked depending on value
function initCheckBoxes(){
$('div.editor input[type="checkbox"]').each(
$('div.editor input[type="checkbox"]').each(
function () {
if ($(this).attr('value')=='1'){
$(this).attr('value','1');
@@ -14,20 +14,20 @@ function initCheckBoxes(){
$(this).attr('value','0');
$(this).attr('checked',null);
}
}
}
);
}
// add checkbox handler to change value on click
function addCheckBoxHandler(){
$('div.editor input[type="checkbox"]').click(
$('div.editor input[type="checkbox"]').click(
function () {
if ($(this).attr('value')=='1'){
$(this).attr('value','0');
}else{
$(this).attr('value','1');
}
}
}
);
}
@@ -183,14 +183,14 @@ function setInputWidth(){
$(document).ready(
function(){
function(){
setupLocalization(
function(){
addBackButton();
updateWeekdays();
}
);
initRegions(region);
showDateTimePicker('.datetimepicker.start', {
@@ -204,8 +204,8 @@ $(document).ready(
initCheckBoxes();
addCheckBoxHandler();
$("#tabs").tabs();
$('#tabs').removeClass('ui-widget ui-widget-content ui-corner-all');
$("#tabs").tabs();
$('#tabs').removeClass('ui-widget ui-widget-content ui-corner-all');
updateScheduleButtonName();
initScheduleFields();
@@ -224,7 +224,7 @@ $(document).ready(
$('table#schedule_table').tablesorter({
widgets: ["filter"],
usNumberFormat : false
usNumberFormat : false
});
}