Skip to content

Instantly share code, notes, and snippets.

@danieltott
Created August 8, 2013 17:43
Show Gist options
  • Save danieltott/6186858 to your computer and use it in GitHub Desktop.
Save danieltott/6186858 to your computer and use it in GitHub Desktop.
Fogbugz Customization: Add elapsed time input when it's missing
name: Add elapsed time when missing
description: Adds elapsed time input when missing
author: Dan Ott
version: 1.0.0.0
js:
$(document).on('keyup.estcheck', '#hrsCurrEstNew',function() {
if($("#hrsElapsedExtraNew").length == 0) {
$('<div class="wideInputWrapper"><input type="text" maxlength="40" name="hrsElapsedExtraNew" id="hrsElapsedExtraNew" class="bugEditing dlgText" tabindex="612" value=""></div>').insertAfter($(this).parent());
$('<span></span>').text('elapsed: ').insertAfter($(this).parent());
}
$(document).off('keyup.estcheck');
});
css:
/* none */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment