From cd255f6173377d380540c3d697976ad9c2d3d5d9 Mon Sep 17 00:00:00 2001 From: Jay McCarthy Date: Wed, 16 Oct 2013 09:33:25 -0600 Subject: [PATCH] updating --- .../plt-services/meta/pkg-index/official/static/index.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/plt-services/meta/pkg-index/official/static/index.js b/pkgs/plt-services/meta/pkg-index/official/static/index.js index b6591ec4bf..1ae24d80c2 100644 --- a/pkgs/plt-services/meta/pkg-index/official/static/index.js +++ b/pkgs/plt-services/meta/pkg-index/official/static/index.js @@ -11,6 +11,10 @@ $( document ).ready(function() { function jslink ( texts, clickf) { return $('', { href: "javascript:void(0)", click: clickf } ).html(texts); } + function jslinki ( texts, clickf) { + var i = $('', { href: "javascript:void(0)", + click: function () { clickf(i); } } ); + return i.html(texts); } function dynamic_send ( u, o ) { o['email'] = localStorage['email']; @@ -516,8 +520,9 @@ $( document ).ready(function() { evaluate_search(); open_info(value); }), " | ", - jslink( "update", function () { - dynamic_send ( "/jsonp/update", {} ); }), + jslinki( "update", function (i) { + dynamic_send ( "/jsonp/update", {} ); + i.text("updating..."); }), " | ", jslink( "logout", function () { localStorage['email'] = "";