MediaWiki:Common.js

From FridaV

Jump to: navigation, search
var chart = {
var chart = {
   init: function() {
   init: function() {
-
     $('table.flot') {
+
     $('table.flot').each(function(i) {
       console.log('Magic flot table '+this.attr(id));
       console.log('Magic flot table '+this.attr(id));
-
     }
+
     });
   }
   }
}
}
$(document).ready(chart.init);
$(document).ready(chart.init);

Revision as of 21:02, 4 April 2009

/* Any JavaScript here will be loaded for all users on every page load. */

var chart = {
  init: function() {
    $('table.flot').each(function(i) {
      console.log('Magic flot table '+this.attr(id));
    });
  }
}

$(document).ready(chart.init);
maps, graphs & data