mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 23:58:13 +08:00
Header and platform fix
This commit is contained in:
6
dist/js/ionic-angular.js
vendored
6
dist/js/ionic-angular.js
vendored
@ -24219,7 +24219,7 @@ angular.module('ionic.service.platform', [])
|
|||||||
|
|
||||||
var isReady = function() {
|
var isReady = function() {
|
||||||
if(platform == 'cordova') {
|
if(platform == 'cordova') {
|
||||||
return window.device;
|
return window.device || window.Cordova;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
@ -25537,6 +25537,10 @@ angular.module('ionic.ui.navRouter', [])
|
|||||||
var oldTitle = $scope.currentTitle;
|
var oldTitle = $scope.currentTitle;
|
||||||
$scope.oldTitle = oldTitle;
|
$scope.oldTitle = oldTitle;
|
||||||
|
|
||||||
|
if(typeof data.title !== 'undefined') {
|
||||||
|
$scope.currentTitle = data.title;
|
||||||
|
}
|
||||||
|
|
||||||
if(data.animate !== false && typeof data.title !== 'undefined') {
|
if(data.animate !== false && typeof data.title !== 'undefined') {
|
||||||
animate($scope, $element, oldTitle, data, function() {
|
animate($scope, $element, oldTitle, data, function() {
|
||||||
hb.align();
|
hb.align();
|
||||||
|
|||||||
@ -260,6 +260,10 @@ angular.module('ionic.ui.navRouter', [])
|
|||||||
var oldTitle = $scope.currentTitle;
|
var oldTitle = $scope.currentTitle;
|
||||||
$scope.oldTitle = oldTitle;
|
$scope.oldTitle = oldTitle;
|
||||||
|
|
||||||
|
if(typeof data.title !== 'undefined') {
|
||||||
|
$scope.currentTitle = data.title;
|
||||||
|
}
|
||||||
|
|
||||||
if(data.animate !== false && typeof data.title !== 'undefined') {
|
if(data.animate !== false && typeof data.title !== 'undefined') {
|
||||||
animate($scope, $element, oldTitle, data, function() {
|
animate($scope, $element, oldTitle, data, function() {
|
||||||
hb.align();
|
hb.align();
|
||||||
|
|||||||
2
js/ext/angular/src/service/ionicPlatform.js
vendored
2
js/ext/angular/src/service/ionicPlatform.js
vendored
@ -20,7 +20,7 @@ angular.module('ionic.service.platform', [])
|
|||||||
|
|
||||||
var isReady = function() {
|
var isReady = function() {
|
||||||
if(platform == 'cordova') {
|
if(platform == 'cordova') {
|
||||||
return window.device;
|
return window.device || window.Cordova;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user