Fix some gallery routes
This commit is contained in:
parent
d61621e198
commit
609c932cca
|
@ -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') %>")
|
||||||
|
|
|
@ -21,11 +21,10 @@ Rails.application.routes.draw do
|
||||||
resources :album_images
|
resources :album_images
|
||||||
resources :gallery_categories
|
resources :gallery_categories
|
||||||
resources :tags
|
resources :tags
|
||||||
|
|
||||||
end
|
end
|
||||||
namespace :front_end do
|
namespace :front_end do
|
||||||
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"
|
||||||
# match "categorylist" => "orbit_galleries#categorylist"
|
# match "categorylist" => "orbit_galleries#categorylist"
|
||||||
# match "gallery_category_delete" => "orbit_galleries#gallery_category_delete"
|
# match "gallery_category_delete" => "orbit_galleries#gallery_category_delete"
|
||||||
|
|
Loading…
Reference in New Issue