Index: lams_central/web/includes/javascript/pedagogicalPlanner.js =================================================================== diff -u -ra301da49ef54944c21a4c78c60a2637959be30b5 -r00a6e145b37916eb1561ea5c68319b0fc691681b --- lams_central/web/includes/javascript/pedagogicalPlanner.js (.../pedagogicalPlanner.js) (revision a301da49ef54944c21a4c78c60a2637959be30b5) +++ lams_central/web/includes/javascript/pedagogicalPlanner.js (.../pedagogicalPlanner.js) (revision 00a6e145b37916eb1561ea5c68319b0fc691681b) @@ -155,7 +155,26 @@ } function closePlanner(text){ - if (confirm(text)){ - window.close(); + if (text==null || confirm(text)){ + window.close(); } + } + + function leaveNodeEditor(text,url){ + if (!isNodeChanged() || text==null || confirm(text)){ + document.location.href=url; + } + } + + function removeNode(text,url){ + if (text==null || confirm(text)){ + document.location.href=url; + } + } + + function isNodeChanged(){ + return false; + //title!=$("#title").val() + //|| briefDescription!=$("#briefDescription").val() + //|| fullDescription!=$("#fullDescription").val(); } \ No newline at end of file