Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save yahelc/1229452 to your computer and use it in GitHub Desktop.
Save yahelc/1229452 to your computer and use it in GitHub Desktop.
Use "Chosen" for Harvest Project timesheet selector
// ==UserScript==
// @name Use Chosen for Harvest Project Timesheet Selector
// @author Yahel Carmon
// @description Uses Chosen for Harvest Project Timesheet Selector. Might break if they change anything. Use at your own risk.
// @namespace https://gist.github.com/gists/1229452
// @include http://*.harvestapp.com/entry/show/*
// @include https://*.harvestapp.com/entry/show/*
// ==/UserScript==
(function(){
var ga = document.createElement("script");
ga.src = "https://raw.github.com/gist/1229452/97998ef46afbcb1723478348ec6839033b0f98d4/use-chosen-for-harvest-client-picker-loaderjs.js";
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
}());
(function() {
document.getElementById("project_selector").parentNode.style.overflow = "visible";
new Chosen($("project_selector"));
timesheet.zero_filled_array= function(length){
length = Math.round(length);
var array = new Array(length);
for( var i = 0; i < length; i++) {
array[i]=0;
}
return array;
}
})();
@yahelc
Copy link
Author

yahelc commented Sep 20, 2011

Click "Raw" on the top file to install this on Greasemonkey or Chrome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment