Minor update for gallery frontend
This commit is contained in:
		
							parent
							
								
									46f80ade6a
								
							
						
					
					
						commit
						04469ff845
					
				|  | @ -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') %>") | ||||
|  |  | |||
|  | @ -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" | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue