cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [19/53] [abbrv] git commit: Added a small waiting message while the _allDocs call is loading the plugins from couchdb
Date Mon, 07 Apr 2014 21:07:15 GMT
Added a small waiting message while the _allDocs call is loading the plugins from couchdb


Project: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/commit/fd174863
Tree: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/tree/fd174863
Diff: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/diff/fd174863

Branch: refs/heads/master
Commit: fd1748634ea84a25ced0a6451a9d1c4db2e8597e
Parents: 768c3ed
Author: Josh Bavari <josh@raisemore.com>
Authored: Wed Mar 19 13:12:45 2014 -0500
Committer: Josh Bavari <josh@raisemore.com>
Committed: Wed Mar 19 13:12:45 2014 -0500

----------------------------------------------------------------------
 attachments/js/controllers/viewAll.js   | 11 +++++++----
 attachments/partials/views/viewAll.html |  8 +++++++-
 2 files changed, 14 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/fd174863/attachments/js/controllers/viewAll.js
----------------------------------------------------------------------
diff --git a/attachments/js/controllers/viewAll.js b/attachments/js/controllers/viewAll.js
index db1292e..c7b81a4 100644
--- a/attachments/js/controllers/viewAll.js
+++ b/attachments/js/controllers/viewAll.js
@@ -1,13 +1,16 @@
 angular.module('registry.controllers').controller('ViewAllController', ['$rootScope', '$scope',
'$http', function($rootScope, $scope, $http) {
-        
+    
+    $scope.loading = true;    
+
     $scope.getPlugins = function(){
         $http({method: 'GET', url:('/api/_all_docs?include_docs=true&skip=3')}).
                 success(function(data, status, headers, config) {
                     console.log(data);
                     $scope.plugins = data.rows;
-                    console.log($scope.plugins)
-                    console.log($scope.plugins[0].doc.description)
-                    console.log($scope.plugins[0].doc['dist-tags'].latest)
+                    $scope.loading = false;
+                    // console.log($scope.plugins);
+                    // console.log($scope.plugins[0].doc.description);
+                    // console.log($scope.plugins[0].doc['dist-tags'].latest);
                 }).
                 error(function(data, status){
                     if (status === 404){

http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/fd174863/attachments/partials/views/viewAll.html
----------------------------------------------------------------------
diff --git a/attachments/partials/views/viewAll.html b/attachments/partials/views/viewAll.html
index 30c1306..a030a85 100644
--- a/attachments/partials/views/viewAll.html
+++ b/attachments/partials/views/viewAll.html
@@ -2,7 +2,13 @@
 <div class="row">
 	<div class="offset-2--hand column-8--hand">
 		<div class="viewContainer">
-		    <pluginlist></pluginlist>
+			<pluginlist></pluginlist>
+			<div ng-show="loading" class="row">
+				<div class="offset-1--hand column-10--hand offset-1-lap column-10--lap center">
+					<h1><i class="icon-cordova"></i></h1>
+					<h2>Loading plugins.</h2>
+				</div>
+			</div>
 		</div>
 	</div>
 </div>
\ No newline at end of file


Mime
View raw message