Fixes issues with requirejs not loading in things in order.
This commit is contained in:
@@ -63,7 +63,9 @@
|
||||
|
||||
@*We cannot use the data-main attribute above because we need to load in the application
|
||||
via a server side JavaScript request, so we just request it after requirejs*@
|
||||
<script src="@Url.Action("Application", "BackOffice")" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
require(["@Url.Action("Application", "BackOffice").EnsureEndsWith('/')"]);
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
ul.umb-tree li ul li ul {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<script type="text/ng-template" id="tree_item_renderer.html">
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* Licensed MIT
|
||||
*/
|
||||
|
||||
define(['angular'], function (angular) {
|
||||
define(['angular', 'app'], function (angular, app) {
|
||||
|
||||
|
||||
//Handles the section area of the app
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* Licensed MIT
|
||||
*/
|
||||
'use strict';
|
||||
define(['angular'], function (angular) {
|
||||
define(['angular', 'app'], function (angular, app) {
|
||||
|
||||
/**
|
||||
* @ngdoc directive
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* Licensed MIT
|
||||
*/
|
||||
'use strict';
|
||||
define(['angular'], function (angular) {
|
||||
define(['angular', 'app'], function (angular, app) {
|
||||
|
||||
/**
|
||||
* @ngdoc factory
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
'use strict';
|
||||
define(['angular'], function (angular) {
|
||||
define(['angular', 'app'], function (angular, app) {
|
||||
angular.module('umbraco.services.dialog', [])
|
||||
.factory('dialog', ['$rootScope', '$compile', '$http', '$timeout', '$q', '$templateCache', function($rootScope, $compile, $http, $timeout, $q, $templateCache) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user