Skip to content

Commit e99f945

Browse files
author
Becky Sroufe
committed
Loading view modal
1 parent 1638c96 commit e99f945

File tree

4 files changed

+19
-13
lines changed

4 files changed

+19
-13
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<h4>Loading ...</h4>
1+
<h1>Loading ...</h1>

app/app-js/modules/loading/loading.view.js

+4-12
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,12 @@ define(function (require) {
88
className: 'loading-modal',
99

1010
/*
11-
ui: {
12-
loadingModal: '.loading-modal'
13-
},
14-
15-
events: {
16-
},
17-
18-
initialize: function () {
19-
console.log('initializing loading view working!');
20-
},
21-
22-
modalShow: function () {
11+
onShow: function() {
12+
var spinner = new Spinner().spin();
13+
target.appendChild(spinner.el);
2314
}
2415
*/
16+
2517
});
2618

2719
return LoadingView;

app/less/hosted-apis.less

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
@import "button-groups.less";
33
@import "buttons.less";
44
@import "dashboard.less";
5+
@import "loading.less";
56
@import "mixins.less";
67
@import "static.less";
78
@import "try-uri.less";

app/less/loading.less

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Loading
2+
// --------------------------------------------------
3+
4+
.loading-modal {
5+
position: absolute;
6+
top: 0;
7+
width: 100%;
8+
padding-top: 10%;
9+
height: 100%;
10+
color: #fff;
11+
background-color: rgba(0,0,0,0.8);
12+
text-align: center;
13+
}

0 commit comments

Comments
 (0)