From d1644dcbc07f0ad493fd4733f3a71bf0a4b0cce9 Mon Sep 17 00:00:00 2001 From: jendib Date: Fri, 16 Aug 2013 17:14:50 +0200 Subject: [PATCH] Loading feedback --- docs-parent/TODO | 1 - .../webapp/app/docs/controller/Navigation.js | 6 +- docs-web/src/main/webapp/img/loader.gif | Bin 0 -> 1849 bytes docs-web/src/main/webapp/index.html | 4 + .../webapp/partial/docs/document.view.html | 82 +++++++++--------- .../src/main/webapp/partial/docs/tag.html | 6 +- docs-web/src/main/webapp/style/main.less | 10 +++ 7 files changed, 67 insertions(+), 42 deletions(-) create mode 100644 docs-web/src/main/webapp/img/loader.gif diff --git a/docs-parent/TODO b/docs-parent/TODO index 6615600d..e69de29b 100644 --- a/docs-parent/TODO +++ b/docs-parent/TODO @@ -1 +0,0 @@ -- Loading feedback for document (list), document.view, tag.default diff --git a/docs-web/src/main/webapp/app/docs/controller/Navigation.js b/docs-web/src/main/webapp/app/docs/controller/Navigation.js index 01b8323d..8d11ae00 100644 --- a/docs-web/src/main/webapp/app/docs/controller/Navigation.js +++ b/docs-web/src/main/webapp/app/docs/controller/Navigation.js @@ -3,7 +3,7 @@ /** * Navigation controller. */ -App.controller('Navigation', function($scope, $state, $rootScope, User, Restangular) { +App.controller('Navigation', function($scope, $http, $state, $rootScope, User, Restangular) { $rootScope.userInfo = User.userInfo(); /** @@ -16,4 +16,8 @@ App.controller('Navigation', function($scope, $state, $rootScope, User, Restangu }); $event.preventDefault(); }; + + $scope.isLoading = function() { + return $http.pendingRequests.length > 0; + }; }); \ No newline at end of file diff --git a/docs-web/src/main/webapp/img/loader.gif b/docs-web/src/main/webapp/img/loader.gif new file mode 100644 index 0000000000000000000000000000000000000000..5b33f7e54f4e55b6b8774d86d96895db9af044b4 GIT binary patch literal 1849 zcma*odr(tX9tZI2z31lM+(&YVk%mZ}5P~KlG2s=WSbGzm0!x7^P##Mnh7t-jP!X0Q zk_SQ}Po-L1tlDK;6l?(>v)e5ZBQx4|Y-Q?nr@Px3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_#XFToU1hIb*VOMidUr6iYiO0N|i-7s`T8!cFT`rN!^1Pt78J93i6 z5HI1wIM$94m{3SLDvISDe6$ZG1;eq_D9RTaaC>=cO{@Bs>$IlPCPJJ$h$)-3vzNUQ6OsN#_zWxey!_9%hxwH2_dEJi=yY|1c7nDm2_Lm!Cof8-R_+9UkS zcBE(o47yE)oMR(Q=dp1a2wTX5KvvGyLqlWTa7V&!A*|w|)ax~1_~aJ0=_Lilg*0iQk7#ZD EAHN$8j{pDw literal 0 HcmV?d00001 diff --git a/docs-web/src/main/webapp/index.html b/docs-web/src/main/webapp/index.html index 0318c5fa..6379ae6c 100644 --- a/docs-web/src/main/webapp/index.html +++ b/docs-web/src/main/webapp/index.html @@ -60,6 +60,10 @@