|
@@ -3,15 +3,15 @@
|
|
return {
|
|
return {
|
|
scope: { trigger: '=focusMe' },
|
|
scope: { trigger: '=focusMe' },
|
|
link: function (scope, element, $attr) {
|
|
link: function (scope, element, $attr) {
|
|
- console.log("focusMe:"+JSON.stringify(element))
|
|
|
|
|
|
+ // console.log("focusMe:"+JSON.stringify(element))
|
|
scope.$watch('trigger', function (value) {
|
|
scope.$watch('trigger', function (value) {
|
|
- console.log(value);
|
|
|
|
|
|
+ // console.log(value);
|
|
if (value === true) {
|
|
if (value === true) {
|
|
$timeout(function() {
|
|
$timeout(function() {
|
|
element[0].focus();
|
|
element[0].focus();
|
|
- cordova.plugins.Keyboard.show();
|
|
|
|
|
|
+ // cordova.plugins.Keyboard.show();
|
|
scope.trigger = false;
|
|
scope.trigger = false;
|
|
- },1000);
|
|
|
|
|
|
+ });
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|