Difference between revisions of "MediaWiki:Common.js"

From MakeICT Wiki
Jump to navigationJump to search
Line 4: Line 4:
 
   var todoContainer = $("#makeict-decision-summary");
 
   var todoContainer = $("#makeict-decision-summary");
 
   for(var i=0; i<todos.length; i++){
 
   for(var i=0; i<todos.length; i++){
     todoContainer.appendChild(todos.cloneNode(true));
+
     todoContainer.appendChild(todos[i].cloneNode(true));
 
   }
 
   }
  

Revision as of 12:42, 8 March 2015

/* Any JavaScript here will be loaded for all users on every page load. */
(function () {
  var todos = $(".makeict-todo");
  var todoContainer = $("#makeict-decision-summary");
  for(var i=0; i<todos.length; i++){
    todoContainer.appendChild(todos[i].cloneNode(true));
  }

}());
/*
  var todos = $(".makeict-todo");
  var todoContainer = $("#makeict-decision-summary");
*/