aboutsummaryrefslogtreecommitdiffstats
path: root/www/js/softkeyboard.js
diff options
context:
space:
mode:
authorSteven Day <steve@mysociety.org>2016-04-28 12:17:12 +0100
committerSteven Day <steve@mysociety.org>2016-04-28 12:21:44 +0100
commitd6e095752f732d859b664dc1027dcaae86f2c2f9 (patch)
treed178322b4c0bbbabd9a56adae984194bb0165412 /www/js/softkeyboard.js
parentab0e30e3924a1ba1eb7be0896ba27cd8b5afe197 (diff)
Swap the SoftKeyboard plugin for ionic's
We already had this plugin to help solve issues with the view scrolling on iOS, and since it offers the same functionality for closing the keyboard as the SoftKeyboard plugin, it makes sense to only use one.
Diffstat (limited to 'www/js/softkeyboard.js')
-rw-r--r--www/js/softkeyboard.js34
1 files changed, 0 insertions, 34 deletions
diff --git a/www/js/softkeyboard.js b/www/js/softkeyboard.js
deleted file mode 100644
index 9b71d46..0000000
--- a/www/js/softkeyboard.js
+++ /dev/null
@@ -1,34 +0,0 @@
-(function( cordova ) {
-
- function SoftKeyBoard() {}
-
- SoftKeyBoard.prototype.show = function(win, fail) {
- return cordova.exec(
- function (args) { if(win !== undefined) { win(args); } },
- function (args) { if(fail !== undefined) { fail(args); } },
- "SoftKeyBoard", "show", []);
- };
-
- SoftKeyBoard.prototype.hide = function(win, fail) {
- return cordova.exec(
- function (args) { if(win !== undefined) { win(args); } },
- function (args) { if(fail !== undefined) { fail(args); } },
- "SoftKeyBoard", "hide", []);
- };
-
- SoftKeyBoard.prototype.isShowing = function(win, fail) {
- return cordova.exec(
- function (args) { if(win !== undefined) { win(args); } },
- function (args) { if(fail !== undefined) { fail(args); } },
- "SoftKeyBoard", "isShowing", []);
- };
-
- if(!window.plugins) {
- window.plugins = {};
- }
-
- if (!window.plugins.SoftKeyBoard) {
- window.plugins.SoftKeyBoard = new SoftKeyBoard();
- }
-
-})( window.cordova );