enable angularjs html5 mode
This commit is contained in:
parent
32c03780ba
commit
19afa17693
|
@ -82,7 +82,7 @@ GEM
|
|||
ancestry (2.0.0)
|
||||
activerecord (>= 3.0.0)
|
||||
angular-i18n (0.1.2)
|
||||
angularjs-rails (1.2.16)
|
||||
angularjs-rails (1.2.18)
|
||||
arbre (1.0.1)
|
||||
activesupport (>= 3.0.0)
|
||||
arel (4.0.2)
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
var RosaABF = angular.module('RosaABF', ['ngResource', 'ng-rails-csrf', 'angular-i18n', 'angularMoment']);
|
||||
var RosaABF = angular.module('RosaABF', ['ngResource', 'ng-rails-csrf', 'angular-i18n', 'angularMoment'])
|
||||
.config(function($locationProvider) {
|
||||
$locationProvider.html5Mode(true);
|
||||
});;
|
||||
|
||||
var DateTimeFormatter = function() {
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ RosaABF.controller('BuildListsController', ['$scope', '$http', '$location', '$ti
|
|||
// Disable 'Search' button
|
||||
$scope.isRequest = true;
|
||||
|
||||
|
||||
|
||||
$http.get(Routes.build_lists_path({format: 'json'}), {params: $location.search()}).success(function(results) {
|
||||
// Render Server status
|
||||
$scope.server_status = results.server_status;
|
||||
|
@ -75,7 +75,7 @@ RosaABF.controller('BuildListsController', ['$scope', '$http', '$location', '$ti
|
|||
$scope.build_lists.push(bl);
|
||||
}
|
||||
});
|
||||
// Shows groups which have been opened before
|
||||
// Shows groups which have been opened before
|
||||
_.each(to_open, function(bl){ $scope.showRelated(bl, true); });
|
||||
|
||||
// Render pagination
|
||||
|
|
Loading…
Reference in New Issue