app/views/components/lolita/configuration/tab/files/_fixed_gallery.html.haml in lolita-file-upload-0.7.1 vs app/views/components/lolita/configuration/tab/files/_fixed_gallery.html.haml in lolita-file-upload-0.7.2
- old
+ new
@@ -2,13 +2,12 @@
.slider.es-carousel-wrapper
.es-carousel
%ul
%div.close.ui-state-default.ui-corner-all
%span.ui-icon.ui-icon-closethick
-
+
:javascript
- $(function(){
- LolitaFileUploadGallery.buttonTitle = '#{t('lolita.tinymce.gallery')}'
- LolitaFileUploadGallery.buttonImage = '#{asset_path('lolita/tinymce_gallery.png')}'
- LolitaFileUploadGallery.get().init()
- })
+ LolitaFileUploadGallery.availableFileIcons = #{Lolita::FileUpload.get_available_file_icons.to_json}
+ LolitaFileUploadGallery.buttonTitle = '#{t('lolita.tinymce.gallery')}'
+ LolitaFileUploadGallery.buttonImage = '#{asset_path('lolita/tinymce_gallery.png')}'
+ LolitaFileUploadGallery.get().init()
\ No newline at end of file