fix(web): fix quote create form positioning
This commit is contained in:
parent
3bfc54e407
commit
93374f1164
@ -8,7 +8,7 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
left: 0;
|
||||||
|
height: 100vh;
|
||||||
background-color: #0008;
|
background-color: #0008;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -123,11 +123,14 @@ $(document).on("click", "#btn-add-open", function (e) {
|
|||||||
now = new Date;
|
now = new Date;
|
||||||
now = new Date(now.getTime() - now.getTimezoneOffset() * 60000);
|
now = new Date(now.getTime() - now.getTimezoneOffset() * 60000);
|
||||||
$("#new-quote-datetime").val(now.toJSON().slice(0,19));
|
$("#new-quote-datetime").val(now.toJSON().slice(0,19));
|
||||||
|
$("body").css("overflow", "hidden");
|
||||||
|
$("#quote-creator").css("top", $(window).scrollTop());
|
||||||
$("#quote-creator").removeClass("hidden");
|
$("#quote-creator").removeClass("hidden");
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document).on("click", "#btn-add-close", function (e) {
|
$(document).on("click", "#btn-add-close", function (e) {
|
||||||
$("#quote-creator").addClass("hidden");
|
$("#quote-creator").addClass("hidden");
|
||||||
|
$("body").css("overflow", "");
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document).on("submit", "#quote-create", function (e) {
|
$(document).on("submit", "#quote-create", function (e) {
|
||||||
@ -143,6 +146,7 @@ $(document).on("submit", "#quote-create", function (e) {
|
|||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (resp) {
|
success: function (resp) {
|
||||||
$("#quote-creator").addClass("hidden");
|
$("#quote-creator").addClass("hidden");
|
||||||
|
$("body").css("overflow", "");
|
||||||
reload();
|
reload();
|
||||||
$("#new-quote-text").val("");
|
$("#new-quote-text").val("");
|
||||||
$("#new-quote-author").val("");
|
$("#new-quote-author").val("");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user