Commits

Ivan Pushkin committed 81a53e2

fix generating js in register event-handler

  • Participants
  • Parent commits 3c1a2dd

Comments (0)

Files changed (1)

widgets/BootTabbable.php

         {
             $fn = CJavaScript::encode($this->events['show']);
 	        $cs->registerScript(__CLASS__.'#'.$id.'.show',
-	                "jQuery('#{$id} a[data-toggle=\"tab\"').on('show', {$fn});");
+	                "jQuery('#{$id} a[data-toggle=\"tab\"]').on('show', {$fn});");
         }
 
         // Register the "shown" event-handler.
         {
             $fn = CJavaScript::encode($this->events['shown']);
 	        $cs->registerScript(__CLASS__.'#'.$id.'.shown',
-	                "jQuery('#{$id} a[data-toggle=\"tab\"').on('shown', {$fn});");
+	                "jQuery('#{$id} a[data-toggle=\"tab\"]').on('shown', {$fn});");
         }
     }