Skip to content

Commit

Permalink
Correção nos links das tabelas de referencia.
Browse files Browse the repository at this point in the history
Signed-off-by: Thiago Berlitz Rondon <thiago.rondon@gmail.com>
  • Loading branch information
thiagorondon committed Jul 29, 2011
1 parent 79afe15 commit 6fc5457
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/CMD/Controller/Root.pm
Expand Up @@ -142,8 +142,9 @@ Standard 404 error page

sub error_404 : Chained('base') PathPart('') Args {
my ( $self, $c ) = @_;
$c->response->body('Page not found');
$c->response->status(404);
# $c->response->body('Page not found');
# $c->response->status(404);
$c->res->redirect('/');
}

=head2 end
Expand Down
2 changes: 1 addition & 1 deletion root/static/js/functions.js
Expand Up @@ -36,7 +36,7 @@ function showData(data,rdata,url,year) {

items.push('<table id="datalist" class="tablesorter" width="95%" align="center"><thead><tr><th>Descri&ccedil;&atilde;o</th><th>Total de gastos</th><th>Porcentagem nesta vis&atilde;o</th></tr></thead><tbody>');
$.each(rdata.children, function(key, val) {
items.push('<tr class="alt"><td width="320">' + '<a href="#">' + val.data.title + '</a></td><td align="right">R$ ' + val.data.valor_tabela + '</td><td align="right">' + val.data.porcentagem + '%</td></tr>');
items.push('<tr class="alt"><td width="320">' + '<a href="' + val.data.link + '">' + val.data.title + '</a></td><td align="right">R$ ' + val.data.valor_tabela + '</td><td align="right">' + val.data.porcentagem + '%</td></tr>');
});
items.push('</tbody></table>');

Expand Down

0 comments on commit 6fc5457

Please sign in to comment.