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,7 +39,7 @@ class CoreController extends Controller
39 39
     );
40 40
     
41 41
     try {
42
-      $params = $this->get('router')->match($url_referer.'552');
42
+      $params = $this->get('router')->match($url_referer);
43 43
     } catch (ResourceNotFoundException $exc) {
44 44
       return $this->redirect($this->generateUrl('home', array('_locale' => $language)));
45 45
     }

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

@@ -1,11 +1,28 @@
1 1
 /*
2 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 26
 var myMessages = ['info','warning','error','success']; // define the messages types	
10 27
 
11 28
 function hideAllMessages()
@@ -668,8 +685,6 @@ $(document).ready(function(){
668 685
   });
669 686
 
670 687
   // Ajout d'un element
671
-  
672
-  
673 688
   $('form[name="add"] input[type="submit"]').live('click', function(){
674 689
     $('form[name="add"]').find('img.tag_loader').show();
675 690
   });
@@ -702,5 +717,10 @@ $(document).ready(function(){
702 717
     
703 718
     return false;
704 719
   });
720
+  
721
+  // Check périodique 
722
+  // TODO.
723
+
724
+
705 725
    
706 726
  });