You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@climate.apache.org by jo...@apache.org on 2014/02/28 06:49:48 UTC

svn commit: r1572834 - /incubator/climate/trunk/ocw-ui/frontend/app/js/directives/PredictiveFileBrowserInput.js

Author: joyce
Date: Fri Feb 28 05:49:48 2014
New Revision: 1572834

URL: http://svn.apache.org/r1572834
Log:
CLIMATE-333 - Update PredictiveFileBrowserInput endpoints

Modified:
    incubator/climate/trunk/ocw-ui/frontend/app/js/directives/PredictiveFileBrowserInput.js

Modified: incubator/climate/trunk/ocw-ui/frontend/app/js/directives/PredictiveFileBrowserInput.js
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/ocw-ui/frontend/app/js/directives/PredictiveFileBrowserInput.js?rev=1572834&r1=1572833&r2=1572834&view=diff
==============================================================================
--- incubator/climate/trunk/ocw-ui/frontend/app/js/directives/PredictiveFileBrowserInput.js (original)
+++ incubator/climate/trunk/ocw-ui/frontend/app/js/directives/PredictiveFileBrowserInput.js Fri Feb 28 05:49:48 2014
@@ -101,8 +101,9 @@ App.Directives.directive('predictiveFile
 		 */
 		// TODO Make this use $HTTP
 		$scope.fetchFiles = function(path) {
-			$.get($scope.baseURL + '/getDirInfo/' + path, {},
+			$.get($scope.baseURL + '/dir/list/' + path, {},
 				 function(data) {
+					 data = data['listing']
 					 $scope.setNewData(data);
 					 $scope.updateAutoComplete();
 				 }, 'json');
@@ -121,8 +122,9 @@ App.Directives.directive('predictiveFile
 		 */
 		// TODO Why isn't this using $http?!?!?! Because I copy and pasted!!!!
 		$scope.fetchFilesAndFilter = function(path) {
-			$.get($scope.baseURL + '/getDirInfo/' + path, {},
+			$.get($scope.baseURL + '/dir/list/' + path, {},
 				 function(data) {
+					 data = data['listing']
 					 $scope.setNewData(data);
 					 $scope.filterResults();
 					 $scope.updateAutoComplete();