Редакция 278 | Редакция 292 | К новейшей редакции | Весь файл | Не учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 278 | Редакция 291 | ||
---|---|---|---|
Строка 63... | Строка 63... | ||
63 | tmpSelect.clearSelect();
|
63 | tmpSelect.clearSelect();
|
64 | adjustReps();
|
64 | adjustReps();
|
65 | $('#replist').css('display','none');
|
65 | $('#replist').css('display','none');
|
66 | $('#getfile').css('display','none');
|
66 | $('#getfile').css('display','none');
|
67 | $('#reps').css('display','none');
|
67 | $('#reps').css('display','none');
|
- | 68 | $('#vdist').css('display','show');
|
|
68 | } else {
|
69 | } else {
|
69 | $.getJSON('./m-process.php',{d:distroValue,status:1},function(data) { tmpSelect.fillSelect(data).attr('disabled',''); adjustReps(); });
|
70 | $.getJSON('./m-process.php',{d:distroValue,status:1},function(data) { tmpSelect.fillSelect(data).attr('disabled',''); adjustReps(); });
|
70 | $('#replist').css('display','none');
|
71 | $('#replist').css('display','none');
|
71 | $('#getfile').css('display','none');
|
72 | $('#getfile').css('display','none');
|
72 | $('#reps').css('display','none');
|
73 | $('#reps').css('display','none');
|
- | 74 | $('#vdist').css('display','show');
|
|
73 | }
|
75 | }
|
74 | };
|
76 | };
|
75 | // Выбор версии дистрибутива
|
77 | // Выбор версии дистрибутива
|
76 | function adjustReps(){
|
78 | function adjustReps(){
|
77 | var distroValue = $('#distro').val();
|
79 | var distroValue = $('#distro').val();
|
Строка 121... | Строка 123... | ||
121 | $modern .= "<h2>"._("Generator of sources.list")."</h2>"; |
123 | $modern .= "<h2>"._("Generator of sources.list")."</h2>"; |
122 | $modern .= "<div class='border'>"; |
124 | $modern .= "<div class='border'>"; |
123 | $modern .= "<label>"._("Distributive")."</label><br>"; |
125 | $modern .= "<label>"._("Distributive")."</label><br>"; |
124 | $modern .= "<select id='distro'>\n<option value=''>"._("Choose distro")."</option>\n"; |
126 | $modern .= "<select id='distro'>\n<option value=''>"._("Choose distro")."</option>\n"; |
125 | $modern .= $linux."</select>"; |
127 | $modern .= $linux."</select>"; |
126 | $modern .= "</div><div class='border'>"; |
128 | $modern .= "</div><div class='border' id='vdist'>"; |
127 | $modern .= "<label>"._("Version of distro")."</label><br>"; |
129 | $modern .= "<label>"._("Version of distro")."</label><br>"; |
128 | $modern .= "<select id='distver' disabled='disabled'><option></option>"; |
130 | $modern .= "<select id='distver' disabled='disabled'><option></option>"; |
129 | $modern .= "</select></div>"; |
131 | $modern .= "</select></div>"; |
130 | $modern .= "<pre id='reps'></pre>"; |
132 | $modern .= "<pre id='reps'></pre>"; |
131 | $modern .= "<pre id='replist'></pre>"; |
133 | $modern .= "<pre id='replist'></pre>"; |