Project:Task tracking.Common.js

From MediaWiki
Jump to: navigation, search

/* Copy this code to your Mediawiki:Common.js

$(document).ready(function() { 
  filterTasks()
});

/* TASK TRACKING */

function filterTasks(){
   $('.incomplete-toggle').click(function() {
        $('.cancelled').toggleClass('hide');
        $('.completed').toggleClass('hide');
        $('.incomplete-toggle').toggleClass('btn-warning btn-danger');
   });
}