source: admin/WebConsole/jscripts/boot_grub4dos.js @ 1985678

918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Last change on this file since 1985678 was f9f08d2, checked in by albertogp <albertogp@…>, 12 years ago

#534 integración mejora en rama de desarrollo branch/version1.0 (1.0.5pre)

git-svn-id: https://opengnsys.es/svn/branches/version1.0@3644 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100644
File size: 2.2 KB
Line 
1// *************************************************************************************************************************************************
2// Libreria de scripts de Javascript
3// Autor: Alberto García Padilla (Universidad de Málaga)
4// Fecha Creación: 2012
5// Fecha Última modificación: Mayo-2012
6// Nombre del fichero: boot_grub4dos.js
7// Descripción :
8//              Este fichero implementa las funciones javascript del fichero boot_grub4dos.php
9// *************************************************************************************************************************************************
10//________________________________________________________________________________________________________
11function move(fbox, tbox) {
12        var arrFbox = new Array();
13        var arrTbox = new Array();
14        var arrLookup = new Array();
15        var i;
16        for (i = 0; i < tbox.options.length; i++) {
17                arrLookup[tbox.options[i].text] = tbox.options[i].value;
18                arrTbox[i] = tbox.options[i].text;
19        }
20        var fLength = 0;
21        var tLength = arrTbox.length;
22        for(i = 0; i < fbox.options.length; i++) {
23                arrLookup[fbox.options[i].text] = fbox.options[i].value;
24                if (fbox.options[i].selected && fbox.options[i].value != "") {
25                        arrTbox[tLength] = fbox.options[i].text;
26                        tLength++;
27                }
28                else {
29                        arrFbox[fLength] = fbox.options[i].text;
30                        fLength++;
31                  }
32                }
33        arrFbox.sort();
34        arrTbox.sort();
35                fbox.length = 0;
36                tbox.length = 0;
37        var c;
38
39for(c = 0; c < arrFbox.length; c++) {
40var no = new Option();
41no.value = arrLookup[arrFbox[c]];
42no.text = arrFbox[c];
43fbox[c] = no;
44}
45
46for(c = 0; c < arrTbox.length; c++) {
47var no = new Option();
48no.value = arrLookup[arrTbox[c]];
49no.text = arrTbox[c];
50tbox[c] = no;
51    }
52}
53
54function allSelect()
55{
56var saveString = "";
57// seleccionamos cada uno de los select
58var input = document.getElementsByTagName('select');
59//alert(input.length);
60for(var i=0; i<input.length; i++){
61//if(inputs[i].getAttribute('type')=='button'){
62// your statements
63patron = "L";
64parm = input[i].name;
65//alert(parm);
66parm = parm.replace(patron,'');
67//alert(parm);
68for (j=0;j<input[i].length;j++)
69                {
70                        //List.options[i].selected = true;
71                        saveString = saveString + parm + '|' + input[i].options[j].value + ';';
72                        //alert(saveString);                   
73                }
74}
75document.forms['myForm'].listOfItems.value = saveString;
76}
Note: See TracBrowser for help on using the repository browser.