summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-09-21 18:42:51 +0200
committerJules Laplace <julescarbon@gmail.com>2020-09-21 18:42:51 +0200
commit853bd5fa85812316a72b2f5ce755dc0facb91932 (patch)
treea38ceae9f25c08e8db3897f622c84f1d3b87972b
parenta810d0248dd9f1099ce15809f8e1e75eedbff8e6 (diff)
ye olde in-app browsered doth itself beopen in a newe windowe
-rwxr-xr-xStoneIsland/www/js/index.js2
-rwxr-xr-xStoneIsland/www/js/lib/view/Serializable.js2
2 files changed, 3 insertions, 1 deletions
diff --git a/StoneIsland/www/js/index.js b/StoneIsland/www/js/index.js
index 3947b43e..0e9ee355 100755
--- a/StoneIsland/www/js/index.js
+++ b/StoneIsland/www/js/index.js
@@ -115,6 +115,8 @@ var app = (function(){
// }
push.init()
+ window.open = cordova.InAppBrowser.open
+
if (navigator.onLine) {
app.account.connect(window.deepLinkRoute || '/intro')
app.blog.fetch(function(){
diff --git a/StoneIsland/www/js/lib/view/Serializable.js b/StoneIsland/www/js/lib/view/Serializable.js
index acf77f2c..bc281b15 100755
--- a/StoneIsland/www/js/lib/view/Serializable.js
+++ b/StoneIsland/www/js/lib/view/Serializable.js
@@ -155,7 +155,7 @@ var SerializableView = View.extend({
}
else {
this.hide_errors()
- window.cordova && window.Keyboard.close()
+ window.cordova && window.Keyboard.hide()
}
var finalized_data = this.finalize(valid.data)