Andrew Mackrodt 12 gadi atpakaļ
vecāks
revīzija
7f32993685
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      static/js/jquery.switch.js

+ 2 - 2
static/js/jquery.switch.js

@@ -1,7 +1,7 @@
 !function ($) {
   "use strict";
 
-  $.fn.switch = function (method) {
+  $.fn['switch'] = function (method) {
     var methods = {
       init:function () {
         this.each(function () {
@@ -205,5 +205,5 @@
 }(jQuery);
 
 $(function () {
-  $('.switch').switch();
+  $('.switch')['switch']();
 });