[f81a22ca] | 1 | // ************************************************************************************************************************************************* |
---|
| 2 | // Libreria de scripts de Javascript |
---|
| 3 | // Autor: José Manuel Alonso (E.T.S.I.I.) Universidad de Sevilla |
---|
| 4 | // Fecha Creación:2003-2004 |
---|
| 5 | // Fecha Última modificación: Febrero-2005 |
---|
| 6 | // Nombre del fichero: propiedades_entornos.js |
---|
| 7 | // Descripción : |
---|
| 8 | // Este fichero implementa las funciones javascript del fichero propiedades_entornos.php |
---|
| 9 | // ************************************************************************************************************************************************* |
---|
| 10 | var currentHora=null; |
---|
[00b3dff] | 11 | |
---|
[f81a22ca] | 12 | var wpadre=window.parent; // Toma frame padre |
---|
| 13 | var farbol=wpadre.frames["frame_arbol"]; |
---|
| 14 | //________________________________________________________________________________________________________ |
---|
| 15 | // |
---|
| 16 | // Cancela la edición |
---|
| 17 | //________________________________________________________________________________________________________ |
---|
| 18 | function cancelar(){ |
---|
| 19 | selfclose(); |
---|
| 20 | } |
---|
[90f061f6] | 21 | // |
---|
| 22 | //________________________________________________________________________________________________________ |
---|
| 23 | // |
---|
| 24 | function selfclose(){ |
---|
| 25 | document.location.href="../nada.php"; |
---|
| 26 | } |
---|
| 27 | // |
---|
[f81a22ca] | 28 | //________________________________________________________________________________________________________ |
---|
| 29 | // |
---|
| 30 | // Devuelve el resultado de modificar algún dato de un registro |
---|
| 31 | // Especificaciones: |
---|
| 32 | // Los parámetros recibidos son: |
---|
| 33 | // - resul: resultado de la operación de inserción ( true si tuvo éxito) |
---|
| 34 | // - descrierror: Descripción del error en su caso |
---|
| 35 | // - lit: Nuevo nombre del grupo |
---|
| 36 | //________________________________________________________________________________________________________ |
---|
| 37 | //________________________________________________________________________________________________________ |
---|
| 38 | // |
---|
| 39 | // Confirma la edición |
---|
| 40 | //________________________________________________________________________________________________________ |
---|
| 41 | function confirmar(op){ |
---|
[00b3dff] | 42 | if(!comprobar_datos()) return |
---|
| 43 | document.fdatos.submit(); |
---|
[f81a22ca] | 44 | } |
---|
| 45 | //________________________________________________________________________________________________________ |
---|
| 46 | // |
---|
| 47 | // Comprobar_datos |
---|
| 48 | //________________________________________________________________________________________________________ |
---|
| 49 | function comprobar_datos(){ |
---|
| 50 | if (document.fdatos.ipserveradm.value=="") { |
---|
| 51 | alert(TbMsg[0]); |
---|
| 52 | document.fdatos.ipserveradm.focus(); |
---|
| 53 | return(false); |
---|
| 54 | } |
---|
| 55 | if (document.fdatos.portserveradm.value=="") { |
---|
| 56 | alert(TbMsg[1]); |
---|
| 57 | document.fdatos.portserveradm.focus(); |
---|
| 58 | return(false); |
---|
| 59 | } |
---|
[00b3dff] | 60 | if (document.fdatos.repositorio.checked==false && document.fdatos.repositorio.checked==false) { |
---|
| 61 | alert(TbMsg[2]); |
---|
| 62 | document.fdatos.xrepositorio[0].focus(); |
---|
| 63 | return(false); |
---|
| 64 | } |
---|
[f81a22ca] | 65 | return(true); |
---|
| 66 | } |
---|
| 67 | |
---|