mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-28 09:53:23 +00:00
Replace mobile detail-view transitions
Minor adjustments to layout
This commit is contained in:
committed by
Francis Lachapelle
parent
2bc44dec9b
commit
05e58b30cc
@@ -117,6 +117,7 @@
|
||||
})
|
||||
|
||||
.controller('navController', ['$scope', '$timeout', '$interval', '$http', '$mdSidenav', '$mdBottomSheet', '$mdMedia', '$log', 'sgConstant', function ($scope, $timeout, $interval, $http, $mdSidenav, $mdBottomSheet, $mdMedia, $log, sgConstant) {
|
||||
|
||||
// Show current day in top bar
|
||||
$scope.currentDay = window.currentDay;
|
||||
$timeout(function() {
|
||||
@@ -147,10 +148,8 @@
|
||||
});
|
||||
};
|
||||
$scope.toggleDetailView = function() {
|
||||
$timeout(function() {
|
||||
var view = angular.element(document.getElementById('detailView'));
|
||||
view.toggleClass('sg-open');
|
||||
})
|
||||
var detail = angular.element(document.getElementById('detailView'));
|
||||
detail.toggleClass('sg-close');
|
||||
};
|
||||
$scope.$watch(function() {
|
||||
return $mdMedia(sgConstant['gt-md']);
|
||||
|
||||
Reference in New Issue
Block a user