rbrecruiter/resources/js/app.js

48 lines
985 B
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";
flatpickr("#appointmentDateTime", {
enableTime: true,
dateFormat: "Y-m-d H:i",
static: false
});
$("#banAccountTrigger").on("click", function(event){
$("#banAccountModal").modal('show');
});
$("#durationDropdown").dropdown();
$(".dropdown-menu a").on("click", function(e){
$(".duration-btn").text(this.innerHTML);
$("#operator").val(this.innerHTML);
});
$("#banAccountButton").on("click", function(){
$("#banAccountForm").submit();
});
$("#comment").keyup(function(){
$("#charcount").text($("#comment").val().length);
});
$("#submitComment").on('click', function(){
$("#newComment").submit();
});
2020-10-03 20:36:35 +00:00
$("#jointype").bootstrapToggle();