// crmApp should not provide any significant services, and no other
// modules should depend on it.
var crmApp = angular.module('crmApp', CRM.angular.modules);
+
+ // dev/core#1818 use angular 1.5 default of # instead of 1.6+ default of #!
+ crmApp.config(['$locationProvider', function($locationProvider) {
+ $locationProvider.hashPrefix("");
+ }]);
+
crmApp.config(['$routeProvider',
function($routeProvider) {
"path": "bower_components/{$id}"
},
"angular": {
- "url": "https://github.com/angular/bower-angular/archive/v1.5.11.zip"
+ "url": "https://github.com/angular/bower-angular/archive/v1.8.0.zip"
},
"angular-bootstrap": {
"url": "https://github.com/angular-ui/bootstrap-bower/archive/2.5.0.zip"
"url": "https://github.com/totten/angular-jquery-dialog-service/archive/v0.8.0-civicrm-1.0.zip"
},
"angular-mocks": {
- "url": "https://github.com/angular/bower-angular-mocks/archive/v1.5.11.zip"
+ "url": "https://github.com/angular/bower-angular-mocks/archive/v1.8.0.zip"
},
"angular-route": {
- "url": "https://github.com/angular/bower-angular-route/archive/v1.5.11.zip"
+ "url": "https://github.com/angular/bower-angular-route/archive/v1.8.0.zip"
},
"angular-sanitize": {
- "url": "https://github.com/angular/bower-angular-sanitize/archive/v1.5.11.zip"
+ "url": "https://github.com/angular/bower-angular-sanitize/archive/v1.8.0.zip"
},
"angular-ui-sortable": {
"url": "https://github.com/angular-ui/ui-sortable/archive/v0.19.0.zip"
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "197ce47c1897c60cbc5ce809f3d5cf14",
+ "content-hash": "1c717ea7ca80e806702967261c621e3a",
"packages": [
{
"name": "adrienrn/php-mimetyper",
```
$ cv url "civicrm/hello-world"
"http://dmaster.localhost/civicrm/hello-world"
-$ cv url "civicrm/hello-world/#/?name=world"
+$ cv url "civicrm/hello-world/#!/?name=world"
"http://dmaster.localhost/civicrm/hello-world/#/?name=world"
```
-<a href="#/?name=0" class="btn btn-default">
+<a href="#!/?name=0" class="btn btn-default">
<i class="crm-i fa-plus"></i> {{ ts('New Form') }}
</a>
<div
<tbody>
<tr ng-repeat="availForm in listCtrl.result">
<td>
- <a ng-href="#/?name={{availForm.name}}">{{availForm.name}}</a>
+ <a ng-href="#!/?name={{availForm.name}}">{{availForm.name}}</a>
</td>
<td>{{availForm.title}}</td>
<td>
<div crm-ui-debug="resultForm"></div>
<div>
- <a ng-href="#/">{{ts('Back')}}</a>
+ <a ng-href="#!/">{{ts('Back')}}</a>
|
<a af-api4-action="['Afform', 'update', {layoutFormat: 'html', where: [['name', '=', resultForm.name]], values:resultForm}]">{{ts('Save')}}</a>
<span ng-if="resultForm.server_route">
<tbody>
<tr ng-repeat="availForm in listCtrl.result">
<td>
- <a ng-href="#/?name={{availForm.name}}">{{availForm.name}}</a>
+ <a ng-href="#!/?name={{availForm.name}}">{{availForm.name}}</a>
</td>
<td>{{availForm.title}}</td>
<td>
var moduleUrl = CRM.angular.bundleUrl;
$http.get(moduleUrl)
- .success(function httpSuccess(data) {
+ .then(function httpSuccess(response) {
templates = [];
- angular.forEach(data, function(module) {
+ angular.forEach(response.data, function(module) {
if (module.partials) {
angular.extend(templates, module.partials);
}
}
});
notify();
- })
- .error(function httpError() {
+ }, function httpError() {
templates = [];
notify();
});