mirror of
https://github.com/unraid/webgui.git
synced 2026-04-24 19:29:13 -05:00
Merge pull request #340 from bergware/master
Syslinux config: basic and advanced mode
This commit is contained in:
@@ -165,9 +165,10 @@ $(function(){
|
||||
var text = $(this).val().split('\n');
|
||||
for (var i=0; i < text.length; i++) {
|
||||
if (text[i].indexOf(mark) >= 0) {
|
||||
$('#text-'+n).val(area.join('\n')).prop('rows',area.length);
|
||||
$('#text-'+(n++)).val(area.join('\n')).prop('rows',area.length);
|
||||
var label = $('#label-'+n);
|
||||
label.html(label.html().replace(/^.*(<span.*)/,text[i].replace(mark,'')+'$1'));
|
||||
area = [];
|
||||
n++;
|
||||
} else {
|
||||
if (text[i].indexOf(menu) >= 0) id = 'input-'+n; else if (text[i].length) area.push(text[i].replace(/^ /,''));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user