version 1.549, 2015/04/28 13:12:46
|
version 1.551, 2015/05/10 01:02:35
|
Line 1076 sub ipacc_boxes_js {
|
Line 1076 sub ipacc_boxes_js {
|
e.preventDefault(); |
e.preventDefault(); |
var identifier = \$(this).closest("div").attr("id"); |
var identifier = \$(this).closest("div").attr("id"); |
identifier = identifier.replace(ipaccRegExp,''); |
identifier = identifier.replace(ipaccRegExp,''); |
\$(this).closest('div').find('.LC_string_ipacc_inner').append('<div><input type="text" name="setip'+identifier+'"/><a href="#" class="LC_remove_ipacc">$remove</a></div>'); |
\$(this).closest('div').find('.LC_string_ipacc_inner').append('<div><input type="text" name="setip'+identifier+'" /><a href="#" class="LC_remove_ipacc">$remove</a></div>'); |
}); |
}); |
|
|
\$(wrapper).delegate(".LC_remove_ipacc","click", function(e){ |
\$(wrapper).delegate(".LC_remove_ipacc","click", function(e){ |
Line 3420 sub string_ip_selector {
|
Line 3420 sub string_ip_selector {
|
<div class="LC_string_ipacc_inner">'."\n"; |
<div class="LC_string_ipacc_inner">'."\n"; |
my $num = 0; |
my $num = 0; |
foreach my $curr (@{$access{$acctype}}) { |
foreach my $curr (@{$access{$acctype}}) { |
$output .= '<div><input type="text" name="setip'.$acctype.'_'.$thiskey.'" value="'.$curr.'">'; |
$output .= '<div><input type="text" name="setip'.$acctype.'_'.$thiskey.'" value="'.$curr.'" />'; |
if ($num > 0) { |
if ($num > 0) { |
$output .= '<a href="#" class="LC_remove_ipacc">'.&mt('Remove').'</a>'; |
$output .= '<a href="#" class="LC_remove_ipacc">'.&mt('Remove').'</a>'; |
} |
} |
Line 3775 sub newoverview {
|
Line 3775 sub newoverview {
|
</script> |
</script> |
'; |
'; |
|
|
#FIXME need onload |
|
my $start_page = &Apache::loncommon::start_page('Set Parameters',$js, |
my $start_page = &Apache::loncommon::start_page('Set Parameters',$js, |
{'add_entries' => \%loaditems,}); |
{'add_entries' => \%loaditems,}); |
my $breadcrumbs = &Apache::lonhtmlcommon::breadcrumbs('Overview'); |
my $breadcrumbs = &Apache::lonhtmlcommon::breadcrumbs('Overview'); |
Line 3903 ENDOVER
|
Line 3902 ENDOVER
|
|
|
&listdata($r,$resourcedata,$listdata,$sortorder); |
&listdata($r,$resourcedata,$listdata,$sortorder); |
} |
} |
#FIXME |
|
$r->print(&tableend(). |
$r->print(&tableend(). |
((($env{'form.store'}) || ($env{'form.dis'}))?'<p><input type="submit" name="store" value="'.&mt('Save').'" /></p>':''). |
((($env{'form.store'}) || ($env{'form.dis'}))?'<p><input type="submit" name="store" value="'.&mt('Save').'" /></p>':''). |
'</form>'); |
'</form>'); |
Line 3986 sub overview {
|
Line 3984 sub overview {
|
# List data |
# List data |
|
|
my $foundkeys=&listdata($r,$resourcedata,$resourcedata,$sortorder); |
my $foundkeys=&listdata($r,$resourcedata,$resourcedata,$sortorder); |
#FIXME |
|
$r->print(&tableend().'<p>'. |
$r->print(&tableend().'<p>'. |
($foundkeys?'<input type="submit" value="'.&mt('Save').'" />':'<span class="LC_info">'.&mt('There are no parameters.').'</span>').'</p></form>'. |
($foundkeys?'<input type="submit" value="'.&mt('Save').'" />':'<span class="LC_info">'.&mt('There are no parameters.').'</span>').'</p></form>'. |
&Apache::loncommon::end_page()); |
&Apache::loncommon::end_page()); |