2020-04-29 02:20:00 +00:00
|
|
|
/**
|
|
|
|
* First we will load all of this project's JavaScript dependencies which
|
|
|
|
* includes Vue and other libraries. It is a great starting point when
|
|
|
|
* building robust, powerful web applications using Vue and Laravel.
|
|
|
|
*/
|
|
|
|
|
2020-05-01 04:42:19 +00:00
|
|
|
require('chart.js');
|
2020-04-26 04:09:32 +00:00
|
|
|
require('./bootstrap');
|
2020-04-29 02:20:00 +00:00
|
|
|
|
2020-05-22 02:49:16 +00:00
|
|
|
import flatpickr from "flatpickr";
|
|
|
|
|
|
|
|
|
2021-10-13 00:19:56 +00:00
|
|
|
$(document).ready(function () {
|
2020-05-22 02:49:16 +00:00
|
|
|
|
2021-10-13 00:19:56 +00:00
|
|
|
flatpickr("#appointmentDateTime", {
|
|
|
|
enableTime: true,
|
|
|
|
dateFormat: "Y-m-d H:i",
|
|
|
|
static: false
|
|
|
|
});
|
2020-05-22 02:49:16 +00:00
|
|
|
|
2021-10-13 00:19:56 +00:00
|
|
|
$("#banAccountTrigger").on("click", function(event){
|
2020-06-26 23:32:33 +00:00
|
|
|
|
2021-10-13 00:19:56 +00:00
|
|
|
$("#banAccountModal").modal('show');
|
2020-06-26 23:32:33 +00:00
|
|
|
|
2021-10-13 00:19:56 +00:00
|
|
|
});
|
2020-06-26 23:32:33 +00:00
|
|
|
|
2021-10-13 00:19:56 +00:00
|
|
|
$("#durationDropdown").dropdown();
|
2020-06-26 23:32:33 +00:00
|
|
|
|
2021-10-13 00:19:56 +00:00
|
|
|
$(".dropdown-menu a").on("click", function(e){
|
2020-06-26 23:32:33 +00:00
|
|
|
|
2021-10-13 00:19:56 +00:00
|
|
|
$(".duration-btn").text(this.innerHTML);
|
|
|
|
$("#operator").val(this.innerHTML);
|
2020-06-26 23:32:33 +00:00
|
|
|
|
2021-10-13 00:19:56 +00:00
|
|
|
});
|
2020-06-26 23:32:33 +00:00
|
|
|
|
2021-10-13 00:19:56 +00:00
|
|
|
$("#banAccountButton").on("click", function(){
|
|
|
|
$("#banAccountForm").submit();
|
|
|
|
});
|
2020-06-26 23:32:33 +00:00
|
|
|
|
2021-10-13 00:19:56 +00:00
|
|
|
$("#comment").keyup(function(){
|
|
|
|
$("#charcount").text($("#comment").val().length);
|
|
|
|
});
|
2020-06-26 23:32:33 +00:00
|
|
|
|
2021-10-13 00:19:56 +00:00
|
|
|
$("#submitComment").on('click', function(){
|
|
|
|
$("#newComment").submit();
|
|
|
|
});
|
2020-10-03 20:36:35 +00:00
|
|
|
|
2021-10-13 00:19:56 +00:00
|
|
|
$("#jointype").bootstrapToggle();
|
|
|
|
|
|
|
|
});
|
2020-10-08 18:19:10 +00:00
|
|
|
|