- changed the index url for admin
- added a small javascript to make it more web 2.0
This commit is contained in:
parent
8c29826c6f
commit
1296143a97
2
admin.rb
2
admin.rb
|
@ -79,7 +79,7 @@ class Admin < Sinatra::Base
|
|||
if session.has_key? :to_path
|
||||
redirect "/admin#{session.delete(:to_path)}"
|
||||
else
|
||||
redirect '/admin/index'
|
||||
redirect '/admin/'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
$('a').live('click', function(e){
|
||||
e.preventDefault();
|
||||
$('#content').load($(this).attr('href') + ' #content');
|
||||
})
|
Loading…
Reference in New Issue