summaryrefslogtreecommitdiff
path: root/includes/sys_form.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2018-08-12 12:42:58 +0200
committermsquare <msquare@notrademark.de>2018-08-12 12:42:58 +0200
commitdf30f7d5d89d8de3f61905d8e25eb361a06faa7f (patch)
treec9c07c9133b266224f1e91e7aabc4c40bf27f67d /includes/sys_form.php
parentc55ae7c3190e48180371bab8f4d7ab4c5726ff13 (diff)
parentb409d2986fcca5bcafdad4b3b33094c12d8530a6 (diff)
merge pr #427: Use npm to handle frontend dependencies
Diffstat (limited to 'includes/sys_form.php')
-rw-r--r--includes/sys_form.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/includes/sys_form.php b/includes/sys_form.php
index b29dd364..c974c1d1 100644
--- a/includes/sys_form.php
+++ b/includes/sys_form.php
@@ -38,12 +38,12 @@ function form_spinner($name, $label, $value)
</div>
</div>
<script type="text/javascript">
- $("#spinner-' . $name . '-down").click(function() {
- var spinner = $("#spinner-' . $name . '");
+ $(\'#spinner-' . $name . '-down\').click(function() {
+ var spinner = $(\'#spinner-' . $name . '\');
spinner.val(parseInt(spinner.val()) - 1);
});
- $("#spinner-' . $name . '-up").click(function() {
- var spinner = $("#spinner-' . $name . '");
+ $(\'#spinner-' . $name . '-up\').click(function() {
+ var spinner = $(\'#spinner-' . $name . '\');
spinner.val(parseInt(spinner.val()) + 1);
});
</script>
@@ -73,13 +73,13 @@ function form_date($name, $label, $value, $start_date = '', $end_date = '')
</div>
<script type="text/javascript">
$(function(){
- $("#' . $dom_id . '").datepicker({
- language: "' . locale_short() . '",
- todayBtn: "linked",
- format: "yyyy-mm-dd",
- startDate: "' . $start_date . '",
- endDate: "' . $end_date . '",
- orientation: "bottom"
+ $(\'#' . $dom_id . '\').datepicker({
+ language: \'' . locale_short() . '\',
+ todayBtn: \'linked\',
+ format: \'yyyy-mm-dd\',
+ startDate: \'' . $start_date . '\',
+ endDate: \'' . $end_date . '\',
+ orientation: \'bottom\'
});
});
</script>