Browse Source

bug fix: oublie de code test ... huh

bastien 13 years ago
parent
commit
1ae9865dac

+ 1 - 1
src/Muzich/CoreBundle/Controller/CoreController.php View File

39
     );
39
     );
40
     
40
     
41
     try {
41
     try {
42
-      $params = $this->get('router')->match($url_referer.'552');
42
+      $params = $this->get('router')->match($url_referer);
43
     } catch (ResourceNotFoundException $exc) {
43
     } catch (ResourceNotFoundException $exc) {
44
       return $this->redirect($this->generateUrl('home', array('_locale' => $language)));
44
       return $this->redirect($this->generateUrl('home', array('_locale' => $language)));
45
     }
45
     }

+ 24 - 4
web/bundles/muzichcore/js/muzich.js View File

1
 /*
1
 /*
2
  * Scripts de Muzi.ch
2
  * Scripts de Muzi.ch
3
- * Rédigé et propriété de Sevajol Bastien (http://www.bux.fr)
3
+ * Rédigé et propriété de Sevajol Bastien (http://www.bux.fr) sauf si mention
4
+ * contraire sur la fonction.
4
  * 
5
  * 
5
  */
6
  */
6
 
7
 
7
-// Messages flashs
8
+// Controle du focus sur la page
9
+function onBlur() {
10
+  document.body.className = 'blurred';
11
+}
12
+
13
+function onFocus(){
14
+    document.body.className = 'focused';
15
+}
16
+
17
+if (/*@cc_on!@*/false) { // check for Internet Explorer
18
+    document.onfocusin = onFocus;
19
+    document.onfocusout = onBlur;
20
+} else {
21
+    window.onfocus = onFocus;
22
+    window.onblur = onBlur;
23
+}
8
 
24
 
25
+// Messages flashs
9
 var myMessages = ['info','warning','error','success']; // define the messages types	
26
 var myMessages = ['info','warning','error','success']; // define the messages types	
10
 
27
 
11
 function hideAllMessages()
28
 function hideAllMessages()
668
   });
685
   });
669
 
686
 
670
   // Ajout d'un element
687
   // Ajout d'un element
671
-  
672
-  
673
   $('form[name="add"] input[type="submit"]').live('click', function(){
688
   $('form[name="add"] input[type="submit"]').live('click', function(){
674
     $('form[name="add"]').find('img.tag_loader').show();
689
     $('form[name="add"]').find('img.tag_loader').show();
675
   });
690
   });
702
     
717
     
703
     return false;
718
     return false;
704
   });
719
   });
720
+  
721
+  // Check périodique 
722
+  // TODO.
723
+
724
+
705
    
725
    
706
  });
726
  });