[ARVADOS] updated: 89c1cc67e4ef23a971fa732ad1b7178566dd22fc

git at public.curoverse.com git at public.curoverse.com
Wed Jun 18 09:03:16 EDT 2014


Summary of changes:
 apps/workbench/app/assets/javascripts/infinite_scroll.js | 3 +++
 1 file changed, 3 insertions(+)

       via  89c1cc67e4ef23a971fa732ad1b7178566dd22fc (commit)
      from  21822c130f0d19eb4082a3b6bc99e45ce1017a8a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 89c1cc67e4ef23a971fa732ad1b7178566dd22fc
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Wed Jun 18 09:03:13 2014 -0400

    2884: Added spinner to indicate infinite scroll is loading.

diff --git a/apps/workbench/app/assets/javascripts/infinite_scroll.js b/apps/workbench/app/assets/javascripts/infinite_scroll.js
index 498f10a..cabc7c5 100644
--- a/apps/workbench/app/assets/javascripts/infinite_scroll.js
+++ b/apps/workbench/app/assets/javascripts/infinite_scroll.js
@@ -14,6 +14,8 @@ function maybe_load_more_content() {
             return;
         // Don't start another request until this one finishes
         $(container).attr('data-infinite-content-href', null);
+        $(container).append('<img src="/assets/ajax-loader.gif" class="infinite-scroller-spinner"></img>');
+        console.log("appended?");
         $.ajax(src,
                {dataType: 'json',
                 type: 'GET',
@@ -32,6 +34,7 @@ function maybe_load_more_content() {
                 $(this.container).attr('data-infinite-content-href', this.src);
             }).
             done(function(data, status, jqxhr) {
+                $(this.container).find(".infinite-scroller-spinner").detach();
                 $(this.container).append(data.content);
                 $(this.container).attr('data-infinite-content-href', data.next_page_href);
             });

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list