From f2cb8e78ad4d1b1707d3d544cabbf81021e0a248 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Thu, 7 Nov 2013 22:07:57 +0800 Subject: [PATCH] gallery theater url fix for theater --- app/assets/javascripts/lib/items/items.js.erb | 1 - .../gallery/app/assets/javascripts/galleryAPI_frontend.js.erb | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/assets/javascripts/lib/items/items.js.erb b/app/assets/javascripts/lib/items/items.js.erb index 4065ece65..090f86f6d 100644 --- a/app/assets/javascripts/lib/items/items.js.erb +++ b/app/assets/javascripts/lib/items/items.js.erb @@ -193,7 +193,6 @@ function pageSetting(id, edit, ps) { $hiddenInput = $pageCategory.siblings('input[type="hidden"]'); _selectData.module.category.length ? $hiddenInput.removeAttr('name') : $hiddenInput.attr('name', 'page[category][]'); _selectData.module.category.length == index + 1 ? $all.prop('checked', true) : $all.prop('checked', false); - console.log($hiddenInput, _selectData.module.category) }); $pageCategoryGroup.show(); } diff --git a/vendor/built_in_modules/gallery/app/assets/javascripts/galleryAPI_frontend.js.erb b/vendor/built_in_modules/gallery/app/assets/javascripts/galleryAPI_frontend.js.erb index d6eceb271..7f2c7e337 100644 --- a/vendor/built_in_modules/gallery/app/assets/javascripts/galleryAPI_frontend.js.erb +++ b/vendor/built_in_modules/gallery/app/assets/javascripts/galleryAPI_frontend.js.erb @@ -213,7 +213,7 @@ var galleryAPI = function(){ } var preparestage = function(albumid){ - $.getJSON("panel/gallery/front_end/albums/"+albumid+"/imgs",{"inner":true},function(album){ + $.getJSON("/panel/gallery/front_end/albums/"+albumid+"/imgs",{"inner":true},function(album){ imageArray = eval(album.images); $.each(album.images,function(i,image){ if(image._id == id)