From 1b9d6e5027769c69fdf46353df272849fe1b079f Mon Sep 17 00:00:00 2001 From: Ted Scharff Date: Thu, 4 Oct 2012 16:50:26 -0700 Subject: [PATCH] Caps normalization --- .../static/geocamTiePoint/js/backbone/views.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/geocamTiePoint/static/geocamTiePoint/js/backbone/views.js b/geocamTiePoint/static/geocamTiePoint/js/backbone/views.js index 06b887b..165f8e3 100644 --- a/geocamTiePoint/static/geocamTiePoint/js/backbone/views.js +++ b/geocamTiePoint/static/geocamTiePoint/js/backbone/views.js @@ -405,10 +405,10 @@ $(function($) { template: '
' + - ''+ - ''+ - ''+ - ''+ + ''+ + ''+ + ''+ + ''+ '
' + '' + '
' + @@ -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) {