From 0db28d9ab43a0b3bd63e6adc925cfcf79ca229ad 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 4065ece6..090f86f6 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 d6eceb27..7f2c7e33 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)