Explorar o código

Add ajax loader

Thomas Rabaix %!s(int64=13) %!d(string=hai) anos
pai
achega
5cc3afacf0

BIN=BIN
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', {