Fixes issues with requirejs not loading in things in order.

This commit is contained in:
Shannon Deminick
2013-06-02 18:42:17 -10:00
parent 575b5b71ab
commit 4a24abca17
6 changed files with 8 additions and 5 deletions

View File

@@ -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>

View File

@@ -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">

View File

@@ -5,7 +5,7 @@
* Licensed MIT
*/
define(['angular'], function (angular) {
define(['angular', 'app'], function (angular, app) {
//Handles the section area of the app

View File

@@ -4,7 +4,7 @@
* Licensed MIT
*/
'use strict';
define(['angular'], function (angular) {
define(['angular', 'app'], function (angular, app) {
/**
* @ngdoc directive

View File

@@ -4,7 +4,7 @@
* Licensed MIT
*/
'use strict';
define(['angular'], function (angular) {
define(['angular', 'app'], function (angular, app) {
/**
* @ngdoc factory

View File

@@ -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) {