update_10.09.23
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
<script src="{{asset('/plugins/countdowntimer/countdowntimer.min.js').'?v='.$asset_version}}"></script>
|
||||
|
||||
@if(!$is_download)
|
||||
|
||||
|
||||
<!-- app js values -->
|
||||
<script type="application/javascript">
|
||||
var APP = {};
|
||||
@@ -69,7 +69,7 @@
|
||||
function printElement(elem) {
|
||||
var domClone = elem.cloneNode(true);
|
||||
var printSection = document.getElementById("printSection");
|
||||
|
||||
|
||||
if (!printSection) {
|
||||
var printSection = document.createElement("div");
|
||||
printSection.id = "printSection";
|
||||
@@ -129,7 +129,7 @@
|
||||
toastr.error("{{ __('messages.some_error_in_input_field') }}");
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$(document).ready(function(){
|
||||
@if(!$is_download)
|
||||
jQuery.extend($.fn.dataTable.defaults, {
|
||||
@@ -138,34 +138,7 @@
|
||||
[25, 50, 100, 200, 500, 1000, -1], [25, 50, 100, 200, 500, 1000, "{{__('messages.all')}}"]
|
||||
],
|
||||
iDisplayLength: 25,
|
||||
dom: 'lBfrtip',
|
||||
buttons: [
|
||||
{
|
||||
extend: 'copy',
|
||||
text: "{{__('messages.copy')}}",
|
||||
exportOptions: {
|
||||
columns: ':visible',
|
||||
}
|
||||
},
|
||||
{
|
||||
extend: 'excel',
|
||||
text: "{{__('messages.excel')}}",
|
||||
exportOptions: {
|
||||
columns: ':visible',
|
||||
}
|
||||
},
|
||||
{
|
||||
extend: 'csv',
|
||||
text: "{{__('messages.csv')}}",
|
||||
exportOptions: {
|
||||
columns: ':visible',
|
||||
}
|
||||
},
|
||||
{
|
||||
extend: 'colvis',
|
||||
text: "{{__('messages.column_visibility')}}",
|
||||
},
|
||||
],
|
||||
dom: 'lfrtip',
|
||||
"language": {
|
||||
"emptyTable": "{{__('messages.emptyTable')}}",
|
||||
"info": "{{__('messages.dt_info')}}",
|
||||
@@ -269,10 +242,10 @@
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Dropzone.autoDiscover = false;
|
||||
function initialize_dropzone(element_name, file_upload_msg, no_of_files_can_be_uploaded, max_file_size, allowed_file_type, url = null) {
|
||||
|
||||
|
||||
var file_remove_url = "library/delete_file.php";
|
||||
if (url == null) {
|
||||
url = "{{ url('/file-upload')}}";
|
||||
@@ -333,11 +306,11 @@
|
||||
if(result.success == 1){
|
||||
toastr.success(result.msg);
|
||||
var index = file_names.indexOf(file.uploaded_as);
|
||||
|
||||
|
||||
if(index!=-1){
|
||||
file_names.splice(index, 1);
|
||||
}
|
||||
|
||||
|
||||
var elementVal = $('input#'+element_name).val();
|
||||
var oldVal = elementVal.split(",");
|
||||
|
||||
@@ -373,12 +346,12 @@
|
||||
}
|
||||
|
||||
function initialize_text_editor(element_name, placeholder, height) {
|
||||
|
||||
|
||||
$('#'+element_name).summernote({
|
||||
placeholder: placeholder,
|
||||
height: height
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function initialize_star_rating(element_name) {
|
||||
$("#"+element_name).rating({
|
||||
@@ -415,18 +388,18 @@
|
||||
var signaturePad = element;
|
||||
var canvas = document.getElementById(element);
|
||||
signaturePad = new SignaturePad(canvas, {
|
||||
onEnd: function(event) {
|
||||
onEnd: function(event) {
|
||||
var element = $(this)[0]._canvas.id
|
||||
var signature = $(this)[0].toDataURL();
|
||||
$('#output_'+element).val(signature);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
if ($('#output_'+element).val().length > 0) {
|
||||
|
||||
signaturePad.fromDataURL($('#output_'+element).val());
|
||||
}
|
||||
|
||||
|
||||
$(document).on('click', '#clear_'+element, function() {
|
||||
signaturePad.clear();
|
||||
$('#output_'+$(this).data('name')).val('');
|
||||
@@ -476,5 +449,5 @@
|
||||
@if(!$is_download && !isset($nav))
|
||||
@if(!empty($__additional_js))
|
||||
{!!$__additional_js!!}
|
||||
@endif
|
||||
@endif
|
||||
@endif
|
||||
@endif
|
||||
|
||||
Reference in New Issue
Block a user