web/data/cubicweb.edition.js
changeset 6544 e0d20fb46389
parent 6421 32a6b11c4013
child 6726 51880d28ef63
equal deleted inserted replaced
6543:66145280a7e6 6544:e0d20fb46389
   263  *
   263  *
   264  * * `nodeId`, eid_from:r_type:eid_to
   264  * * `nodeId`, eid_from:r_type:eid_to
   265  */
   265  */
   266 function togglePendingDelete(nodeId, eid) {
   266 function togglePendingDelete(nodeId, eid) {
   267     // node found means we should cancel deletion
   267     // node found means we should cancel deletion
   268     if (jQuery.className.has(cw.getNode('span' + nodeId), 'pendingDelete')) {
   268     if (jQuery(cw.getNode('span' + nodeId)).hasClass('pendingDelete')) {
   269         cancelPendingDelete(nodeId, eid);
   269         cancelPendingDelete(nodeId, eid);
   270     } else {
   270     } else {
   271         addPendingDelete(nodeId, eid);
   271         addPendingDelete(nodeId, eid);
   272     }
   272     }
   273 }
   273 }