web/data/cubicweb.edition.js
branchstable
changeset 3767 03924de0014d
parent 3760 9d93faa0e6dc
child 3834 e3e64352063d
equal deleted inserted replaced
3766:9e5dc4b1ada4 3767:03924de0014d
   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');