update logout an d remove botstrap select
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
//= require settings/processing_items
|
||||
//= require momentjs/moment
|
||||
//= require bootstrap-material-datetimepicker/js/bootstrap-material-datetimepicker
|
||||
//= require bootstrap-select/js/bootstrap-select
|
||||
//= require multi-select/js/jquery.multi-select.js
|
||||
//= require jquery-slimscroll/jquery.slimscroll.js
|
||||
//= require node-waves/waves.js
|
||||
//= require sweetalert/sweetalert.min.js
|
||||
@@ -36,7 +36,7 @@
|
||||
|
||||
|
||||
$(document).on('turbolinks:load', function() {
|
||||
|
||||
|
||||
$('.datetimepicker').bootstrapMaterialDatePicker({
|
||||
format: 'DD-MM YYYY - HH:mm',
|
||||
clearButton: true,
|
||||
@@ -58,19 +58,10 @@ $(document).on('turbolinks:load', function() {
|
||||
|
||||
});
|
||||
|
||||
function showConfirmMessage() {
|
||||
swal({
|
||||
title: "Information",
|
||||
text: "You will not be able to recover this imaginary file!",
|
||||
type: "warning",
|
||||
showCancelButton: true,
|
||||
confirmButtonColor: "#DD6B55",
|
||||
confirmButtonText: "OK",
|
||||
closeOnConfirm: true
|
||||
}, function () {
|
||||
swal("Deleted!", "Your imaginary file has been deleted.", "success");
|
||||
});
|
||||
}
|
||||
// Material Select Initialization
|
||||
$(document).ready(function() {
|
||||
$('.mdb-select').material_select();
|
||||
});
|
||||
|
||||
$(function(){
|
||||
|
||||
@@ -137,13 +128,12 @@ $(function(){
|
||||
});
|
||||
|
||||
$('.delete').click(function(){
|
||||
var method = $(this).attr('data-method');
|
||||
var url = $(this).attr('data-ref');
|
||||
var html = $( this ).siblings( "#delete_text" ).html();
|
||||
console.log(html);
|
||||
var method = $(this).attr('data-method');
|
||||
var url = $(this).attr('data-ref');
|
||||
var html_text = $( this ).siblings( "#delete_text" ).html();
|
||||
swal({
|
||||
title: "Confirmation",
|
||||
text: html,
|
||||
text: html_text,
|
||||
type: "warning",
|
||||
showCancelButton: true,
|
||||
confirmButtonColor: "#DD6B55",
|
||||
|
||||
Reference in New Issue
Block a user