From: <tob...@us...> - 2014-03-11 18:57:23
|
Revision: 7927 http://sourceforge.net/p/bigdata/code/7927 Author: tobycraig Date: 2014-03-11 18:57:20 +0000 (Tue, 11 Mar 2014) Log Message: ----------- #842 - Prevent user from deleting default namespace Modified Paths: -------------- branches/RDR/bigdata-war/src/html/js/workbench.js Modified: branches/RDR/bigdata-war/src/html/js/workbench.js =================================================================== --- branches/RDR/bigdata-war/src/html/js/workbench.js 2014-03-11 15:53:10 UTC (rev 7926) +++ branches/RDR/bigdata-war/src/html/js/workbench.js 2014-03-11 18:57:20 UTC (rev 7927) @@ -73,8 +73,13 @@ } function deleteNamespace(namespace) { + // prevent default namespace from being deleted + if(namespace == DEFAULT_NAMESPACE) { + alert('You may not delete the default namespace.'); + return; + } + if(confirm('Are you sure you want to delete the namespace ' + namespace + '?')) { - // FIXME: should we check if the default namespace is the one being deleted? if(namespace == NAMESPACE) { // FIXME: what is the desired behaviour when deleting the current namespace? } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |