|
|
|
@ -25,8 +25,8 @@ $(document).ready(function() { |
|
|
|
clear_form_errors(form); |
|
|
|
clear_form_errors(form); |
|
|
|
|
|
|
|
|
|
|
|
if (data.success) { |
|
|
|
if (data.success) { |
|
|
|
console.log('!!!!!!!!!!!!!!!!!!!'); |
|
|
|
// console.log('!!!!!!!!!!!!!!!!!!!');
|
|
|
|
console.log(data); |
|
|
|
// console.log(data);
|
|
|
|
if (form[0].id == 'client-edit-form') { |
|
|
|
if (form[0].id == 'client-edit-form') { |
|
|
|
$('#id_client_text').hide(); |
|
|
|
$('#id_client_text').hide(); |
|
|
|
$('#id_client-deck').html( |
|
|
|
$('#id_client-deck').html( |
|
|
|
@ -184,8 +184,10 @@ function expandObject(obj, width, align) { |
|
|
|
|
|
|
|
|
|
|
|
function clearResultSearchDiv(div) { |
|
|
|
function clearResultSearchDiv(div) { |
|
|
|
|
|
|
|
|
|
|
|
if ($(div).html().trim() !== '') { |
|
|
|
// console.log($(div));
|
|
|
|
div.html(''); |
|
|
|
|
|
|
|
|
|
|
|
if ($(div).text().trim() !== '') { |
|
|
|
|
|
|
|
div.text(''); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|