Created
September 20, 2011 15:43
-
-
Save yahelc/1229452 to your computer and use it in GitHub Desktop.
Use "Chosen" for Harvest Project timesheet selector
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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); | |
}()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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
Click "Raw" on the top file to install this on Greasemonkey or Chrome.