Browse Source

Afficher ajouter un element: cache le formulaire de filtre

bastien 13 years ago
parent
commit
ed7d0c71d9

+ 2 - 2
src/Muzich/CoreBundle/Resources/views/SearchElement/element.html.twig View File

11
               src="{{ asset('bundles/muzichcore/img/nothumb.png') }}" 
11
               src="{{ asset('bundles/muzichcore/img/nothumb.png') }}" 
12
             {% endif %}
12
             {% endif %}
13
             title="{{ 'element.show.open_embed'|trans({}, 'elements') }}" 
13
             title="{{ 'element.show.open_embed'|trans({}, 'elements') }}" 
14
-            alt="open"
14
+            alt=""
15
           />
15
           />
16
         </a>
16
         </a>
17
       {% else %}
17
       {% else %}
24
               src="{{ asset('bundles/muzichcore/img/nothumb.png') }}" 
24
               src="{{ asset('bundles/muzichcore/img/nothumb.png') }}" 
25
             {% endif %}
25
             {% endif %}
26
             title="{{ 'element.show.open_embed'|trans({}, 'elements') }}" 
26
             title="{{ 'element.show.open_embed'|trans({}, 'elements') }}" 
27
-            alt="open"
27
+            alt=""
28
           />
28
           />
29
         </a>
29
         </a>
30
       {% endif %}
30
       {% endif %}

+ 6 - 0
web/bundles/muzichcore/css/main.css View File

442
   margin-left: -20px;
442
   margin-left: -20px;
443
 }
443
 }
444
 
444
 
445
+li.element td.element_thumbnail
446
+{
447
+  width: 120px;
448
+  height: 90px;
449
+}
450
+
445
 li.element img.element_thumbnail
451
 li.element img.element_thumbnail
446
 {
452
 {
447
   width: 120px;
453
   width: 120px;

+ 2 - 0
web/bundles/muzichhome/js/home.js View File

4
    $('#element_add_link').click(function(){
4
    $('#element_add_link').click(function(){
5
      $('#element_add_box').slideDown("slow");
5
      $('#element_add_box').slideDown("slow");
6
      $('#element_add_link').hide();
6
      $('#element_add_link').hide();
7
+     $('form[name="search"]').slideUp();
7
      return false;
8
      return false;
8
    });   
9
    });   
9
    
10
    
11
    $('#element_add_close_link').click(function(){
12
    $('#element_add_close_link').click(function(){
12
      $('#element_add_box').slideUp("slow");
13
      $('#element_add_box').slideUp("slow");
13
      $('#element_add_link').show();
14
      $('#element_add_link').show();
15
+     $('form[name="search"]').slideDown();
14
      return false;
16
      return false;
15
    }); 
17
    }); 
16
    
18