Minor update for gallery frontend

This commit is contained in:
Harry Bomrah 2012-11-19 18:18:46 +08:00
parent 46f80ade6a
commit 04469ff845
2 changed files with 2 additions and 1 deletions

View File

@ -45,7 +45,7 @@ var galleryAPI = function(){
}else{
var cids = "all";
}
$.getJSON("panel/gallery/front_end/get_albums",{"cid":cids,"tid":tids,"inner":true},function(categories){
$.getJSON("/panel/gallery/front_end/get_albums",{"cid":cids,"tid":tids,"inner":true},function(categories){
$.each(categories,function(x,category){
$.each(category,function(i,album){
album.description = (album.description?album.description:"<%= I18n.t('gallery.no_description') %>")

View File

@ -22,6 +22,7 @@ Rails.application.routes.draw do
end
namespace :front_end do
match "orbit_galleries" => "orbit_galleries#index"
match "get_albums" => "albums#get_albums"
# match "orbit_galleries" => "orbit_galleries#index"
# match "gallery_category_save" => "orbit_galleries#new_category"