Skip to content

Instantly share code, notes, and snippets.

View JonnyFunFun's full-sized avatar

Jonathan Enzinna JonnyFunFun

View GitHub Profile
@JonnyFunFun
JonnyFunFun / CFClassesOfService.js
Last active December 18, 2015 22:09
Custom Field-version of the TargetProcess 3 Classes of Service mashup.
tau.mashups
.addDependency('tp/mashups')
.addDependency('user/mashups')
.addDependency('jQuery')
.addDependency('Underscore')
.addDependency('tp3/mashups/context')
.addDependency('tau/core/bus.reg')
.addDependency('tau/configurator')
.addMashup(function (m, um, $, _, context, busRegistry, configurator) {
@JonnyFunFun
JonnyFunFun / gist:5796885
Created June 17, 2013 13:32
Kanban Column Hider mashup with per-project configuration logic
tau.mashups
.addDependency('libs/jquery/jquery')
.addMashup(function ($, config) {
// Put projects => states' names that you want to hide here
// projects can be a regular expression
var statesToHideConfiguration = {
'Private Universe #[0-9]+': ['Invalid', 'Fixed']
};
// gathers the project name from the div.x-panel-kanban-header > span
@JonnyFunFun
JonnyFunFun / gist:5348053
Created April 9, 2013 18:19
Super simple mashup that adds an alert message to the header in TargetProcess
tau.mashups
.addDependency("libs/jquery/jquery")
.addMashup(function(config) {
var alertEl = '<br/><br/><div class="alert"><strong>Heads up!</strong> This is an awesome message!</div>';
$(document).ready(function() {
$('div#ctl00_helpPanel').append(alertEl);
});
@JonnyFunFun
JonnyFunFun / assigned_effort_mashup.js
Created November 14, 2012 13:36
Assigned Effort Mashup
tau.mashups
.addDependency('libs/jquery/jquery').addMashup(function() {
function showReport() {
$('head').append('<style type="text/css">'
+'table.board-efforts tr.hoverHi:hover {background: #E3F5D7 !important}'
+'table.board-efforts tr {border-bottom: 1px dotted #eee !important}'
+'table.board-efforts td {height: 20px; }'
+'table.board-efforts td em {font-size: smaller;}'
+'table.board-efforts {border-collapse: collapse;}'