Skip to content

Commit

Permalink
Merge pull request #509 from owncloud/new-loading-classes
Browse files Browse the repository at this point in the history
Adapt loader to owncloud/core#24491
  • Loading branch information
georgehrke committed May 10, 2016
2 parents 352b394 + f6591e1 commit b8cc80e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 21 deletions.
4 changes: 0 additions & 4 deletions css/calendar.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
*/


#app-content.loading {
background-size: 25px;
}

.app {
height: 100%;
width: 100%;
Expand Down
15 changes: 3 additions & 12 deletions css/calendarlist.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,6 @@
width: 100%;
padding: 8px;
}
#app-navigation .loading {
margin-left: 5px;
height: 30px;
width: 92%;
background-size: 20px;
}
#app-navigation .new-entity,
#app-navigation .subscription-title {
display: block;
Expand Down Expand Up @@ -109,13 +103,10 @@
#app-navigation .app-navigation-list-item .calendarCheckbox.unchecked {
background: transparent !important;
}
#app-navigation .app-navigation-list-item .loading {
#app-navigation .app-navigation-list-item .icon-loading-small {
position: absolute;
margin-left: 17px;
margin-top: 16px;
width: 12px;
height: 12px;
background-size: 12px;
margin-left: 15px;
margin-top: 14px;
}
#app-navigation .app-navigation-list-item .utils {
height: 44px;
Expand Down
4 changes: 1 addition & 3 deletions templates/part.calendarlist.item.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
*/
?>
<span class="calendarCheckbox" ng-show="!calendar.list.loading && !calendar.list.edit" ng-style="{ background : calendar.enabled == true ? calendar.color : 'transparent' }" ng-click="triggerEnable(calendar)"></span>
<span class="loading pull-left" ng-show="calendar.list.loading && !calendar.list.edit">
<i class="fa fa-spinner fa-spin"></i>
</span>
<span class="icon-loading-small pull-left" ng-show="calendar.list.loading && !calendar.list.edit"></span>
<a href="#/" ng-click="triggerEnable(calendar)" ng-show="!calendar.list.edit" title="{{ calendar.displayname }}">
{{ calendar.displayname }}
</a>
Expand Down
2 changes: 1 addition & 1 deletion templates/part.calendarlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*/
?>
<ul class="app-navigation-list calendar-list">
<div ng-class="{loading: is.loading}"></div>
<div ng-class="{'icon-loading-small': is.loading}"></div>
<li ng-repeat="calendar in calendars | orderBy:['order'] | calendarFilter" class="app-navigation-list-item" ng-class="{active: calendar.enabled}">
<?php print_unescaped($this->inc('part.calendarlist.item')); ?>
</li>
Expand Down
2 changes: 1 addition & 1 deletion templates/part.subscriptionlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*/
?>
<ul class="app-navigation-list subscription-list">
<div ng-class="{loading: is.loading}"></div>
<div ng-class="{'icon-loading-small': is.loading}"></div>
<li ng-repeat="calendar in calendars | orderBy:['order'] | subscriptionFilter" class="app-navigation-list-item" ng-class="{active: calendar.enabled}">
<?php print_unescaped($this->inc('part.calendarlist.item')); ?>
</li>
Expand Down

0 comments on commit b8cc80e

Please sign in to comment.