Skip to content

Instantly share code, notes, and snippets.

  • Save douglasback/1560334 to your computer and use it in GitHub Desktop.
Save douglasback/1560334 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/*
// @include http://*.harvestapp.com/daily
// @include https://*.harvestapp.com/daily
// ==/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;
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment