# HG changeset patch # User Atul Varma # Date 1275546313 25200 # Node ID be87610d9abbee1f18966889a591abe54375d7a2 # Parent 7e455c3a7ad12973e3813b9ee1a1a50f249e4e67 added loading throbber, a few other css changes diff -r 7e455c3a7ad1 -r be87610d9abb static-files/app.js --- a/static-files/app.js Wed Jun 02 23:06:07 2010 -0700 +++ b/static-files/app.js Wed Jun 02 23:25:13 2010 -0700 @@ -22,12 +22,16 @@ $("form").submit( function(event) { event.preventDefault(); + if ($("form").hasClass("thinking")) + return; $("#success").hide(); $("#failure").hide(); + $("form").addClass("thinking"); jsonRequest( "try", {url: $("#pull-url").val()}, function(data) { + $("form").removeClass("thinking"); if (data.success) { $("#success .patch").val(data.patch); $("#success").slideDown(); diff -r 7e455c3a7ad1 -r be87610d9abb static-files/index.html --- a/static-files/index.html Wed Jun 02 23:06:07 2010 -0700 +++ b/static-files/index.html Wed Jun 02 23:25:13 2010 -0700 @@ -9,10 +9,12 @@ } input { - border: 1px solid gray; + border: none; + padding: 0.25em; } input[type=text] { + border: 1px dotted gray; width: 40em; } @@ -33,6 +35,17 @@ #failure .log { color: red; } + + form { + padding-left: 2em; + line-height: 2em; + } + + .thinking { + background-image: url('ajax-loader.gif'); + background-repeat: no-repeat; + background-position: top left; + } @@ -41,7 +54,7 @@ URL of HG repository containing your changes: - +

Yay, we got a patch!