diff --git a/.htaccess b/.htaccess index 0ab1e54..e120592 100644 --- a/.htaccess +++ b/.htaccess @@ -26,33 +26,26 @@ #Deny every *.php file - Order Deny,Allow - Deny from all - Allow from 127.0.0.1 + Require all granted #allow following files - Order Allow,Deny - Allow from all + Require all granted - Order Allow,Deny - Allow from all + Require all granted - Order Allow,Deny - Allow from all + Require all granted - Order Allow,Deny - Allow from all + Require all granted - Order Allow,Deny - Allow from all + Require all granted diff --git a/config/config.php b/config/config.php index 0c1fa1c..3a0b01f 100644 --- a/config/config.php +++ b/config/config.php @@ -1,6 +1,6 @@ - false, -); - -?> \ No newline at end of file + false, +); + +?> diff --git a/cont/list.php b/cont/list.php index 167fa62..a2d0349 100644 --- a/cont/list.php +++ b/cont/list.php @@ -33,7 +33,12 @@ } print_r("
"); - print_r("
"); + print_r("
"); + print_r("
"); + print_r(""); + print_r(""); + print_r("
"); + print_r("
"); print_r("
$item->Anzahl $item->Einheit
"); print_r("
$item->Name
"); print_r("
- \ No newline at end of file diff --git a/install/install.php b/install/install.php index c51f15a..dcaf4c7 100644 --- a/install/install.php +++ b/install/install.php @@ -75,6 +75,6 @@ - + diff --git a/install/install_adduser.php b/install/install_adduser.php index 4b4b924..eb94b59 100644 --- a/install/install_adduser.php +++ b/install/install_adduser.php @@ -32,6 +32,6 @@ - + diff --git a/js/adduser.js b/js/adduser.js index e68c806..e08b4e0 100644 --- a/js/adduser.js +++ b/js/adduser.js @@ -27,6 +27,7 @@ $(document).ready(function () { }); }); function userPopover(title, text){ + $("#newuser").popover('dispose'); $("#newuser").data("toggle", "popover"); $("#newuser").data("container", "body"); $("#newuser").data("placement", "bottom"); diff --git a/js/list.js b/js/list.js index 814da20..32d200e 100644 --- a/js/list.js +++ b/js/list.js @@ -16,7 +16,7 @@ function highlightNewEntry(){ if(match!=null){ var newID = match[1]; var checkBox = $(`[data-id='${newID}']`); - var newRow = checkBox.parent().parent(); + var newRow = checkBox.parent().parent().parent(); newRow.removeClass($(checkBox).data("color")); newRow.addClass("alert-primary"); setTimeout(function () { @@ -111,28 +111,28 @@ function checkItem() { }, success: function () { var color = $(dataIdSelector).data("color"); - $(dataIdSelector).parent().parent().removeClass("bg-danger"); - $(dataIdSelector).parent().parent().find(".dropdown-menu-button").removeClass("btn-danger"); + $(dataIdSelector).parent().parent().parent().removeClass("bg-danger"); + $(dataIdSelector).parent().parent().parent().find(".dropdown-menu-button").removeClass("btn-danger"); if($(dataIdSelector).prop("checked")){ - $(dataIdSelector).parent().parent().removeClass(color); - $(dataIdSelector).parent().parent().addClass("bg-success"); + $(dataIdSelector).parent().parent().parent().removeClass(color); + $(dataIdSelector).parent().parent().parent().addClass("bg-success"); } else{ - $(dataIdSelector).parent().parent().removeClass("bg-success"); - $(dataIdSelector).parent().parent().addClass(color); + $(dataIdSelector).parent().parent().parent().removeClass("bg-success"); + $(dataIdSelector).parent().parent().parent().addClass(color); } }, error: function () { - $(dataIdSelector).parent().parent().addClass("bg-danger"); - $(dataIdSelector).parent().parent().data("toggle", "popover"); - $(dataIdSelector).parent().parent().data("container", "body"); - $(dataIdSelector).parent().parent().data("placement", "top"); - $(dataIdSelector).parent().parent().data("html", true); - $(dataIdSelector).parent().parent().data("trigger", "focus"); - $(dataIdSelector).parent().parent().data("content", "Dieses Element konnte nicht gespeichert werden.
Bitte die Seite Aktualisieren"); - $(dataIdSelector).parent().parent().attr("title", "Fehler!"); - $(dataIdSelector).parent().parent().popover('show'); + $(dataIdSelector).parent().parent().parent().addClass("bg-danger"); + $(dataIdSelector).parent().parent().parent().data("toggle", "popover"); + $(dataIdSelector).parent().parent().parent().data("container", "body"); + $(dataIdSelector).parent().parent().parent().data("placement", "top"); + $(dataIdSelector).parent().parent().parent().data("html", true); + $(dataIdSelector).parent().parent().parent().data("trigger", "focus"); + $(dataIdSelector).parent().parent().parent().data("content", "Dieses Element konnte nicht gespeichert werden.
Bitte die Seite Aktualisieren"); + $(dataIdSelector).parent().parent().parent().attr("title", "Fehler!"); + $(dataIdSelector).parent().parent().parent().popover('show'); } }); } \ No newline at end of file diff --git a/style/themes/sketchy.css b/style/themes/sketchy.css index 6c0bdbd..7a65cd7 100644 --- a/style/themes/sketchy.css +++ b/style/themes/sketchy.css @@ -7095,27 +7095,26 @@ select.form-control { [type="checkbox"] { position: relative; - -webkit-appearance: none; appearance: none; cursor: pointer; } [type="checkbox"]:before { content: ""; - /* position: absolute; */ - /* left: -1.2em; */ - /* top: -0.9em; */ + position: absolute; + left: -1.2em; + top: -0.9em; display: inline-block; width: 15px; height: 16px; - border: 2px solid #fff; + border: 2px solid #333; border-radius: 2px 8px 2px 4px / 5px 3px 5px 3px; } [type="checkbox"]:checked:after { content: "x"; position: absolute; - left: 3px; - /* top: -0.48em; */ + left: -0.64em; + top: -0.48em; font-size: 1.5rem; line-height: 0.5; - color: #fff; } + color: #333; } [type="checkbox"]:disabled:before { border: 2px solid #aaa; }