501 jQuery('#'+divid+'-reledit').parent().loadxhtml(JSON_BASE_URL, args, 'post'); |
501 jQuery('#'+divid+'-reledit').parent().loadxhtml(JSON_BASE_URL, args, 'post'); |
502 } |
502 } |
503 |
503 |
504 function showInlineEditionForm(eid, rtype, divid) { |
504 function showInlineEditionForm(eid, rtype, divid) { |
505 jQuery('#' + divid).hide(); |
505 jQuery('#' + divid).hide(); |
506 jQuery('#' + divid+'-form').show(); |
506 jQuery('#' + divid + '-value' ).hide(); |
|
507 jQuery('#' + divid+ '-form').show(); |
507 } |
508 } |
508 |
509 |
509 function hideInlineEdit(eid, rtype, divid) { |
510 function hideInlineEdit(eid, rtype, divid) { |
510 jQuery('#appMsg').hide(); |
511 jQuery('#appMsg').hide(); |
511 jQuery('div.errorMessage').remove(); |
512 jQuery('div.errorMessage').remove(); |
512 jQuery('#' + divid).show(); |
513 jQuery('#' + divid).show(); |
513 jQuery('#' + divid+'-form').hide(); |
514 jQuery('#' + divid + '-value').show(); |
|
515 jQuery('#' + divid +'-form').hide(); |
514 } |
516 } |
515 |
517 |
516 CubicWeb.provide('edition.js'); |
518 CubicWeb.provide('edition.js'); |