Skip to content

Instantly share code, notes, and snippets.

@rsobers
rsobers / jordan.js
Created August 23, 2011 15:21
Estimate and Elapsed Warning
name: Estimate and Elapsed Warning
description: Warn user to enter estimated and elapsed time
author: Rob Sobers
version: 1.0.0.0
js:
if (!window.clickBugSubmit) return;
window.clickBugSubmit = (function(fnOrig) {
return function(e, elForm, fXMLSubmit, sValue, bOK) {
if(bOK) {
@rsobers
rsobers / elapsed.js
Created August 16, 2011 17:34
BugMonkey script to warn user to update elapsed time when saving a case
var sWarning = "The elapsed time has not been updated for "
+ "this case!\n\n"
+ "Do you want to save anyway?";
var fHasEstimate = ((goBug.hrsOrigEst + goBug.hrsCurrEst) > 0);
if (!fHasEstimate) return;
if (!window.clickBugSubmit) return;
window.clickBugSubmit = (function(fnOrig) {