bug fixes on activity log and array_key_first alt using reset
This commit is contained in:
22
public/assets/js/clientshow.js
vendored
22
public/assets/js/clientshow.js
vendored
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
$('.progressIndicatorCheckbox').on('change', function() {
|
||||
// From the other examples
|
||||
console.log('finker');
|
||||
// console.log('finker');
|
||||
if (!this.checked) {
|
||||
var sure = confirm("Are you sure?");
|
||||
this.checked = !sure;
|
||||
@@ -38,7 +38,7 @@
|
||||
$('#newNotesForm').modal('show');
|
||||
});
|
||||
$('#progressIndicatorBtn').click(function(evt){
|
||||
console.log('foo bars');
|
||||
// console.log('foo bars');
|
||||
evt.preventDefault();
|
||||
$('#progressIndicatorDetailsModal').modal('show');
|
||||
});
|
||||
@@ -77,7 +77,7 @@
|
||||
async: false,
|
||||
success: function (data){
|
||||
if (data.code === 1) {
|
||||
console.log(theIDD);
|
||||
// console.log(theIDD);
|
||||
$('#paymentIdEdit').val(theIDD);
|
||||
$('#financeServicesEdit').val(data.services_arr).change();
|
||||
$('#invoiceNumberEdit').val(data.result.invoice_number);
|
||||
@@ -111,7 +111,7 @@
|
||||
tve.preventDefault();
|
||||
//var theIDD = $("input[name=payment_entry_id]").val();
|
||||
var theIDD = $(this).siblings('.notesRowId').val();
|
||||
console.log(theIDD);
|
||||
// console.log(theIDD);
|
||||
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
@@ -121,7 +121,7 @@
|
||||
async: false,
|
||||
success: function (data){
|
||||
if (data.code === 1) {
|
||||
console.log(theIDD);
|
||||
// console.log(theIDD);
|
||||
$('#noteIdEdit').val(theIDD);
|
||||
$('#notesServicesEdit').val(data.services_arr).change();
|
||||
$('#notesBodyEdit').val(data.result.notes_body);
|
||||
@@ -226,11 +226,11 @@
|
||||
//console.log(error);
|
||||
//console.log("AJAX error in request: " + JSON.stringify(err, null, 2));
|
||||
var output = $.parseJSON(error.responseText);
|
||||
console.log(output.errors);
|
||||
// console.log(output.errors);
|
||||
$('#financeNotifyArea').removeClass('hidden');
|
||||
$('#financeNotifyArea').addClass('alert alert-danger');
|
||||
$.each(output.errors, function (key, value) {
|
||||
console.log(value[0]);
|
||||
// console.log(value[0]);
|
||||
$('#financeNotifyArea').text(value[0]);
|
||||
});
|
||||
}
|
||||
@@ -276,7 +276,7 @@
|
||||
|
||||
$('#editNotesForm').submit(function(evt){
|
||||
evt.preventDefault();
|
||||
console.log($(this).length);
|
||||
// console.log($(this).length);
|
||||
var formData = new FormData($(this)[0]);
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
@@ -348,15 +348,15 @@
|
||||
},
|
||||
error: function (data) {
|
||||
var output = $.parseJSON(data.responseText);
|
||||
console.log(output.errors);
|
||||
// console.log(output.errors);
|
||||
$('#notifyArea').removeClass('hidden');
|
||||
$.each(output.errors, function (key, value) {
|
||||
console.log(value[0]);
|
||||
// console.log(value[0]);
|
||||
$('#notifyArea').text(value[0]);
|
||||
});
|
||||
},
|
||||
fail : function(errordata){
|
||||
console.log(errordata);
|
||||
// console.log(errordata);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user