rbrecruiter/resources/js/app.js

52 lines
1.1 KiB
JavaScript
Raw Normal View History

/**
* 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.
*/
require('chart.js');
2020-04-26 04:09:32 +00:00
require('./bootstrap');
import flatpickr from "flatpickr";
2021-10-13 00:19:56 +00:00
$(document).ready(function () {
2021-10-13 00:19:56 +00:00
flatpickr("#appointmentDateTime", {
enableTime: true,
dateFormat: "Y-m-d H:i",
static: false
});
2021-10-13 00:19:56 +00:00
$("#banAccountTrigger").on("click", function(event){
2021-10-13 00:19:56 +00:00
$("#banAccountModal").modal('show');
2021-10-13 00:19:56 +00:00
});
2021-10-13 00:19:56 +00:00
$("#durationDropdown").dropdown();
2021-10-13 00:19:56 +00:00
$(".dropdown-menu a").on("click", function(e){
2021-10-13 00:19:56 +00:00
$(".duration-btn").text(this.innerHTML);
$("#operator").val(this.innerHTML);
2021-10-13 00:19:56 +00:00
});
2021-10-13 00:19:56 +00:00
$("#banAccountButton").on("click", function(){
$("#banAccountForm").submit();
});
2021-10-13 00:19:56 +00:00
$("#comment").keyup(function(){
$("#charcount").text($("#comment").val().length);
});
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();
});