Fix album widget options
This commit is contained in:
1 parent
be00cec4d7
commit
c6111460f5
7 files changed
+18
-28
No files matched your search
@@ -39,9 +39,8 @@ class Admin::PagePartsController < ApplicationController
|
||||
when 'announcement'
|
||||
@categories = BulletinCategory.all
|
||||
@tags = AnnouncementTag.all
|
||||
when 'news'
|
||||
@categories = NewsBulletinCategory.all
|
||||
@tags = NewsTag.all
|
||||
when 'gallery'
|
||||
@albums = GalleryAlbum.all
|
||||
when 'web_resource'
|
||||
@categories = WebLinkCategory.all
|
||||
@tags = WebResourceTag.all
|
||||
@@ -102,9 +101,8 @@ class Admin::PagePartsController < ApplicationController
|
||||
when 'announcement'
|
||||
@categories = BulletinCategory.all
|
||||
@tags = AnnouncementTag.all
|
||||
when 'news'
|
||||
@categories = NewsBulletinCategory.all
|
||||
@tags = NewsTag.all
|
||||
when 'gallery'
|
||||
@albums = GalleryAlbum.all
|
||||
when 'web_resource'
|
||||
@categories = WebLinkCategory.all
|
||||
@tags = WebResourceTag.all
|
||||
|
||||
@@ -1,10 +1,3 @@
|
||||
class OrbitWidgetController< OrbitFrontendComponentController
|
||||
before_filter :get_wiget_options
|
||||
|
||||
def get_wiget_options
|
||||
@wiget_options = {}
|
||||
if params[:widget_options]
|
||||
@wiget_options = (eval('{'+ params[:widget_options] +'}') rescue {})
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user