|
@@ -225,10 +225,25 @@ class CoreController extends Controller
|
225
|
225
|
if ($this->getRequest()->isXmlHttpRequest())
|
226
|
226
|
{
|
227
|
227
|
// Récupération du li
|
228
|
|
- $html = $this->render('MuzichCoreBundle:SearchElement:li.element.html.twig', array(
|
229
|
|
- 'element' => $element,
|
230
|
|
- 'class_color' => 'odd'
|
231
|
|
- ))->getContent();
|
|
228
|
+ if (!$group)
|
|
229
|
+ {
|
|
230
|
+ $html = $this->render('MuzichCoreBundle:SearchElement:li.element.html.twig', array(
|
|
231
|
+ 'element' => $element,
|
|
232
|
+ 'class_color' => 'odd'
|
|
233
|
+ ))->getContent();
|
|
234
|
+ }
|
|
235
|
+ else
|
|
236
|
+ {
|
|
237
|
+ $html = $this->render('MuzichCoreBundle:SearchElement:li.element.html.twig', array(
|
|
238
|
+ 'element' => $element,
|
|
239
|
+ 'class_color' => 'odd',
|
|
240
|
+ 'no_group_name' => true
|
|
241
|
+ ))->getContent();
|
|
242
|
+ }
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
232
|
247
|
|
233
|
248
|
return $this->jsonResponse(array(
|
234
|
249
|
'status' => 'success',
|