浏览代码

Add ajax loader

Thomas Rabaix 13 年之前
父节点
当前提交
5cc3afacf0
共有 2 个文件被更改,包括 1 次插入1 次删除
  1. 二进制
      Resources/public/ajax-loader.gif
  2. 1 1
      Resources/views/CRUD/edit_orm_many_association_script.html.twig

二进制
Resources/public/ajax-loader.gif


+ 1 - 1
Resources/views/CRUD/edit_orm_many_association_script.html.twig

@@ -342,7 +342,7 @@ This code manage the many-to-[one|many] association field popup
 
         // update the
         jQuery('#{{ id }}').live('change', function(event) {
-            jQuery('#field_widget_{{ id }}').html("{{ 'loading_information ...'|trans([], 'SonataAdminBundle') }}");
+            jQuery('#field_widget_{{ id }}').html("<span><img src=\"{{ asset('bundles/sonataadmin/ajax-loader.gif') }}\" style=\"vertical-align: middle; margin-right: 10px\"/>{{ 'loading_information ...'|trans([], 'SonataAdminBundle') }}</span>");
             jQuery.ajax({
                 type: 'GET',
                 url: '{{ url('sonata_admin_short_object_information', {