Lines 10-29
Link Here
|
10 |
|
10 |
|
11 |
function fieldChanged(){ |
11 |
function fieldChanged(){ |
12 |
var field = $('#fieldchoice').val(); |
12 |
var field = $('#fieldchoice').val(); |
13 |
$("#loading").html(" <img src=\"/intranet-tmpl/prog/img/loading-small.gif\" alt=\"\" />"); |
13 |
$("#loading").html(" <img src=\"/intranet-tmpl/prog/img/loading.gif\" alt=\"\" />"); |
14 |
$.ajax({ |
14 |
$.ajax({ |
15 |
url: CGIBIN + 'tools/batchedit.pl?field=' + field, |
15 |
url: CGIBIN + 'tools/batchedit.pl?field=' + field, |
16 |
dataType: 'json', |
16 |
dataType: 'json', |
17 |
success: function(data){ |
17 |
success: function(data){ |
18 |
$("#loading").html(""); |
18 |
$("#loading").html(""); |
19 |
$("#subfieldchoice option").remove(); |
19 |
$("#subfieldchoice option").remove(); |
20 |
|
20 |
|
21 |
var subfield = $('#subfieldchoice'); |
21 |
var subfield = $('#subfieldchoice'); |
22 |
$("<option>").attr("value", "@") |
22 |
$("<option>").attr("value", "@") |
23 |
.text( _('Whole field')) |
23 |
.text( _('Whole field')) |
24 |
.appendTo('#subfieldchoice'); |
24 |
.appendTo('#subfieldchoice'); |
25 |
for( var i=0; i < data.length ; i++){ |
25 |
for( var i=0; i < data.length ; i++){ |
26 |
$("<option>").attr("value", data[i].subfield) |
26 |
$("<option>").attr("value", data[i].subfield) |
27 |
.text(data[i].subfield) |
27 |
.text(data[i].subfield) |
28 |
.appendTo('#subfieldchoice'); |
28 |
.appendTo('#subfieldchoice'); |
29 |
} |
29 |
} |
Lines 31-37
Link Here
|
31 |
} |
31 |
} |
32 |
}); |
32 |
}); |
33 |
} |
33 |
} |
34 |
|
|
|
35 |
function subfieldChanged(){ |
34 |
function subfieldChanged(){ |
36 |
var field = $('#fieldchoice').val(); |
35 |
var field = $('#fieldchoice').val(); |
37 |
var subfield = $('#subfieldchoice').val(); |
36 |
var subfield = $('#subfieldchoice').val(); |
Lines 70-78
Link Here
|
70 |
|
69 |
|
71 |
function addRule(){ |
70 |
function addRule(){ |
72 |
var actionlabel = { |
71 |
var actionlabel = { |
73 |
mod: _('Modify'), |
72 |
mod: _('Modify subfield'), |
74 |
del: _('Delete'), |
73 |
del: _('Delete subfield'), |
75 |
add: _('Create') |
74 |
add: _('Create subfield'), |
|
|
75 |
addfield: _('Create field and subfield') |
76 |
}; |
76 |
}; |
77 |
var repvallabel = $('#repvalchoice :selected').text() || $("#repvalchoice").val(); |
77 |
var repvallabel = $('#repvalchoice :selected').text() || $("#repvalchoice").val(); |
78 |
|
78 |
|
79 |
- |
|
|