summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/jscripts/propiedades_menus.js
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2015-04-20 10:56:54 +0000
committerramon <ramongomez@us.es>2015-04-20 10:56:54 +0000
commit1a2fa9d82bafd3ef8e0d703bf715fe3e58853d0d (patch)
tree1e008f200ff4b413d0807eee03df75ef42f39fab /admin/WebConsole/jscripts/propiedades_menus.js
parentc916af9faafcd8fa120aeaf9092c0847aa09183a (diff)
#673: Actualizar código incluido en OepnGnSys 1.0.6 sobre la rama {{{version1.1}}} para desarrollar la nueva versión.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@4609 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/jscripts/propiedades_menus.js')
-rw-r--r--admin/WebConsole/jscripts/propiedades_menus.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/admin/WebConsole/jscripts/propiedades_menus.js b/admin/WebConsole/jscripts/propiedades_menus.js
index b270eebf..7a7ae518 100644
--- a/admin/WebConsole/jscripts/propiedades_menus.js
+++ b/admin/WebConsole/jscripts/propiedades_menus.js
@@ -74,10 +74,18 @@ function confirmar(op){
// Comprobar_datos
//___________________________________________________________________________________________________________
function comprobar_datos(){
+ var url=[document.fdatos.htmlmenupub.value,document.fdatos.htmlmenupri.value];
+ var expreg=new RegExp("^http://|^https://");
if (document.fdatos.descripcion.value=="") {
alert(TbMsg[0]);
document.fdatos.descripcion.focus();
return(false);
}
+ for (i = 0; i < url.length; i++) {
+ if (url[i]!="" && ! expreg.test(url[i])) {
+ alert(TbMsg[2]);
+ return(false);
+ }
+ }
return(true);
}