Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Caps normalization

  • Loading branch information...
commit 1b9d6e5027769c69fdf46353df272849fe1b079f 1 parent 224ec51
@deleted deleted authored
Showing with 6 additions and 5 deletions.
  1. +6 −5 geocamTiePoint/static/geocamTiePoint/js/backbone/views.js
View
11 geocamTiePoint/static/geocamTiePoint/js/backbone/views.js
@@ -405,10 +405,10 @@ $(function($) {
template:
'<div id="workflow_controls">' +
- '<button id="save">save</button>'+
- '<button id="undo" onclick="undo()">undo</button>'+
- '<button id="redo" onclick="redo()">redo</button>'+
- '<button id="export" disabled="true">export</button>'+
+ '<button id="save">Save</button>'+
+ '<button id="undo" onclick="undo()">Undo</button>'+
+ '<button id="redo" onclick="redo()">Redo</button>'+
+ '<button id="export" disabled="true">Export</button>'+
'</div>' +
'<input type="search" id="locationSearch" placeholder="Jump to a location"></input>' +
'<div id="zoom_controls">' +
@@ -519,12 +519,13 @@ $(function($) {
$('button#save').click( function() {
var button = $(this);
+ button.data('original-text', button.text());
button.disabled = true;
overlay.warp({
success: function(model, response) {
button.disabled = false;
button.text("WARPED");
- _.delay(function(){button.text("save");}, 1000);
+ _.delay(function(){button.text(button.data('original-text'));}, 1000);
$('input#show_overlay').attr('checked', true).change();
},
error: function(model, response) {
Please sign in to comment.
Something went wrong with that request. Please try again.