diff options
author | Bot <bot@myigel.name> | 2018-08-11 22:16:57 +0200 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2018-08-11 22:16:57 +0200 |
commit | 28349b69a8e591ddd2472bd53a3029de96444696 (patch) | |
tree | 77e5575fb777768718546a398fa797c041117970 /includes/view/UserDriverLicenses_view.php | |
parent | 3d245660c53da4b4da832c3139329e091dbfac3d (diff) |
Changed JS to use single quotes instead of double quotes
Diffstat (limited to 'includes/view/UserDriverLicenses_view.php')
-rw-r--r-- | includes/view/UserDriverLicenses_view.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/includes/view/UserDriverLicenses_view.php b/includes/view/UserDriverLicenses_view.php index b92f5f07..be21ca53 100644 --- a/includes/view/UserDriverLicenses_view.php +++ b/includes/view/UserDriverLicenses_view.php @@ -53,18 +53,18 @@ function UserDriverLicense_edit_view($user_source, $wants_to_drive, $user_driver ]), '<script type="text/javascript"> $(function() { - var checkbox = $("#wants_to_drive"); - if(checkbox.is(":checked")) - $("#driving_license").show(); + var checkbox = $(\'#wants_to_drive\'); + if(checkbox.is(\':checked\')) + $(\'#driving_license\').show(); else - $("#driving_license").hide(); + $(\'#driving_license\').hide(); checkbox.click( function() { - if($("#wants_to_drive").is(":checked")) - $("#driving_license").show(); + if($(\'#wants_to_drive\').is(\':checked\')) + $(\'#driving_license\').show(); else - $("#driving_license").hide(); + $(\'#driving_license\').hide(); } ); }); |