Minor update for gallery frontend
This commit is contained in:
parent
46f80ade6a
commit
04469ff845
|
@ -45,7 +45,7 @@ var galleryAPI = function(){
|
||||||
}else{
|
}else{
|
||||||
var cids = "all";
|
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(categories,function(x,category){
|
||||||
$.each(category,function(i,album){
|
$.each(category,function(i,album){
|
||||||
album.description = (album.description?album.description:"<%= I18n.t('gallery.no_description') %>")
|
album.description = (album.description?album.description:"<%= I18n.t('gallery.no_description') %>")
|
||||||
|
|
|
@ -22,6 +22,7 @@ Rails.application.routes.draw do
|
||||||
end
|
end
|
||||||
|
|
||||||
namespace :front_end do
|
namespace :front_end do
|
||||||
|
match "orbit_galleries" => "orbit_galleries#index"
|
||||||
match "get_albums" => "albums#get_albums"
|
match "get_albums" => "albums#get_albums"
|
||||||
# match "orbit_galleries" => "orbit_galleries#index"
|
# match "orbit_galleries" => "orbit_galleries#index"
|
||||||
# match "gallery_category_save" => "orbit_galleries#new_category"
|
# match "gallery_category_save" => "orbit_galleries#new_category"
|
||||||
|
|
Loading…
Reference in New Issue