equal
deleted
inserted
replaced
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 } |