Skip to content

Commit c5252e3

Browse files
committed
Merge pull request #30 from pluswave/PR-1
更新版本,适应IOS9
2 parents 6411759 + c2cc588 commit c5252e3

File tree

7 files changed

+18
-17
lines changed

7 files changed

+18
-17
lines changed

app/js/filters/topic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ angular.module('cnodejs.filters')
1919
content
2020
.replace(userLinkRegex, 'href="#/user/$1"')
2121
.replace(noProtocolSrcRegex, 'src="https://$1"')
22-
.replace(externalLinkRegex, "onClick=\"window.open('$1', '_blank', 'location=yes')\"")
22+
.replace(externalLinkRegex, "onClick=\"cordova.InAppBrowser.open('$1', '_blank', 'location=yes')\"")
2323
);
2424
}
2525
return content;

app/templates/settings.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@
3636
Email
3737
</span>
3838
</ion-item>
39-
<ion-item onclick="window.open('itms-apps://itunes.apple.com/app/id954734793', '_system')" ng-if="platform.isIOS()">
39+
<ion-item onclick="cordova.InAppBrowser.open('itms-apps://itunes.apple.com/app/id954734793', '_system')" ng-if="platform.isIOS()">
4040
评分鼓励
4141
</ion-item>
42-
<ion-item onclick="window.open('http://blog.lanceli.com/about', '_blank', 'location=yes')">
42+
<ion-item onclick="cordova.InAppBrowser.open('http://blog.lanceli.com/about', '_blank', 'location=yes')">
4343
关于作者
4444
</ion-item>
45-
<ion-item onclick="window.open('https://cnodejs.org/about', '_blank', 'location=yes')">
45+
<ion-item onclick="cordova.InAppBrowser.open('https://cnodejs.org/about', '_blank', 'location=yes')">
4646
关于CNode社区
4747
</ion-item>
4848
</ion-list>

app/templates/topic.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<ion-view view-title="详情">
22
<ion-content class="has-header">
3-
<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()" refreshing-icon="ion-loading-c">
3+
<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()" >
44
</ion-refresher>
55
<div class="row topic">
66
<div class="col col90">

app/templates/topics.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
</ion-nav-buttons>
55
<ion-content class="has-header">
66

7-
<ion-refresher ng-if="topics.length > 0 || loadError" pulling-text="下拉刷新..." on-refresh="doRefresh()" refreshing-icon="ion-loading-c">
7+
<ion-refresher ng-if="topics.length > 0 || loadError" pulling-text="下拉刷新..." on-refresh="doRefresh()">
88
</ion-refresher>
99
<ion-list class="topics">
1010
<ion-item class="item-avatar"
@@ -28,7 +28,7 @@ <h2>{{topic.title}}</h2>
2828
Loading icon of infinte-scroll not showing with collection-repeat
2929
https://github.com/driftyco/ionic/issues/2376
3030
-->
31-
<ion-infinite-scroll on-infinite="loadMore()" distance="10%" icon="ion-loading-c" ng-if="hasNextPage && !loadError">
31+
<ion-infinite-scroll on-infinite="loadMore()" distance="10%" ng-if="hasNextPage && !loadError">
3232
</ion-infinite-scroll>
3333
</ion-content>
3434
</ion-view>

app/templates/user.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<button ng-if="user.loginname == loginName" class="button button-clear" ng-click="logout()">退出</button>
44
</ion-nav-buttons>
55
<ion-content class="has-header user">
6-
<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()" refreshing-icon="ion-loading-c">
6+
<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()">
77
</ion-refresher>
88
<ion-list>
99
<ion-item class="item-divider item-gap">

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "cnodejs",
33
"version": "0.0.0",
44
"dependencies": {
5-
"ionic": "driftyco/ionic-bower#v1.0.0-beta.14",
5+
"ionic": "driftyco/ionic-bower#v1.1.1",
66
"angular-moment": "~0.8.2",
77
"angular-resource": "~1.3.1"
88
},

package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,18 @@
5050
},
5151
"cordovaPlugins": [
5252
"https://github.com/driftyco/ionic-plugins-keyboard.git",
53-
"org.apache.cordova.statusbar",
54-
"org.apache.cordova.console",
55-
"https://github.com/wildabeast/BarcodeScanner.git",
53+
"cordova-plugin-statusbar",
54+
"cordova-plugin-console",
5655
"https://github.com/VersoSolutions/CordovaClipboard",
57-
"org.apache.cordova.splashscreen",
58-
"org.apache.cordova.inappbrowser",
56+
"cordova-plugin-splashscreen",
57+
"cordova-plugin-inappbrowser",
5958
"https://github.com/katzer/cordova-plugin-badge.git",
60-
"org.apache.cordova.dialogs",
59+
"cordova-plugin-dialogs",
6160
"https://github.com/katzer/cordova-plugin-email-composer.git",
6261
"https://github.com/danwilson/google-analytics-plugin.git",
6362
"https://github.com/lanceli/jpush-phonegap-plugin",
64-
"org.apache.cordova.device"
65-
]
63+
"cordova-plugin-device",
64+
"phonegap-plugin-barcodescanner"
65+
],
66+
"cordovaPlatforms": []
6667
}

0 commit comments

Comments
 (0)