Skip to content

Commit

Permalink
+ ES autofill: if value is greater than 8h, do not set it
Browse files Browse the repository at this point in the history
+ Focus to Close upon updating EL as well
  • Loading branch information
Ville Seppä committed Mar 15, 2013
1 parent a50fba3 commit c70326b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Expand Up @@ -53,7 +53,7 @@ public String retrieveBacklogHourEntries() {
public String retrieveLatestHourEntryDelta() {
this.delta = new HourEntryDelta();
long deltaMinutes = hourEntryBusiness.retrieveLatestHourEntryDelta(SecurityUtil.getLoggedUserId());
if (deltaMinutes > 0) {
if (deltaMinutes > 0 && deltaMinutes <= 480) {
this.delta.setDelta(deltaMinutes);
}
return Action.SUCCESS;
Expand Down
Expand Up @@ -184,6 +184,7 @@ TaskModel.prototype._saveData = function(id, changedData) {
me.getStory().reloadMetrics();
if (PageController.getInstance().mainController instanceof IterationController)
PageController.getInstance().mainController.reloadMetricsBox();
jQuery('.ui-button:eq(' + 0 + ')').focus();
},
error: function(xhr, status, error) {
MessageDisplay.Error("Error saving task", xhr);
Expand Down

0 comments on commit c70326b

Please sign in to comment.