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)