Changeset 500
- Timestamp:
- 10/05/09 16:30:17 (15 years ago)
- Location:
- LATMOS-Accounts-Web
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Ajax.pm
r451 r500 56 56 } 57 57 58 sub objexist : Local { 59 my ($self, $c, $otype) = @_; 60 my $base = $c->model('Accounts')->db; 61 my $val = $c->req->param('val'); 62 my $obj = $base->get_object($otype, $val); 63 64 $c->stash->{'exists'} = join(', ', $obj->get_attributes($c->req->param('attr') || 65 'displayName')) if($obj); 66 } 67 58 68 sub objattrexist : Local { 59 69 my ($self, $c, $otype, $attr) = @_; -
LATMOS-Accounts-Web/root/html/users/mail.tt
r497 r500 23 23 [% FOREACH alias = user.get_c_field('aliases') %] 24 24 [% oalias = c.model('Accounts').db.get_object('aliases', alias) %] 25 <input type="text" name="aliases" value="[% alias %]"><br> 25 <input type="text" name="aliases" value="[% alias %]" id="[% 'aliases' _ loop.count %]"> 26 <span style="display:none" id="[% 'aliasesind' _ loop.count %]">Searching...</span> 27 <span id="[% 'aliases_span' _ loop.count %]"></span><br> 28 [% c.prototype.observe_field('aliases' _ loop.count, { 29 url => c.uri_for('/ajax', 'objexist', 'aliases'), 30 with => "'val='+value+ '&attr=forward'", 31 update => 'aliases_span' _ loop.count, 32 frequency => 1, 33 min_chars => 1, 34 indicator => 'aliasesind' _ loop.count, 35 }) %] 26 36 [% END %] 27 <input type="text" name="aliases" value=""><br> 37 <input type="text" name="aliases" value="" id="aliases0"><br> 38 <span style="display:none" id="[% 'aliasesind' _ 0 %]">Searching...</span> 39 <span id="[% 'aliases_span' _ 0 %]"></span><br> 40 [% c.prototype.observe_field('aliases' _ 0, { 41 url => c.uri_for('/ajax', 'objexist', 'aliases'), 42 with => "'val='+value+ '&attr=forward'", 43 update => 'aliases_span' _ 0, 44 frequency => 1, 45 min_chars => 1, 46 indicator => 'aliasesind' _ 0, 47 }) %] 28 48 29 49 --<br>
Note: See TracChangeset
for help on using the changeset viewer.