Skip to content

Instantly share code, notes, and snippets.

@danieltott
Created November 15, 2013 21:27
Show Gist options
  • Save danieltott/7491933 to your computer and use it in GitHub Desktop.
Save danieltott/7491933 to your computer and use it in GitHub Desktop.
Fogbugz customization - Add elapsed time when 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