diff --git a/directives/input.html b/directives/input.html index adc5e7f..d275638 100644 --- a/directives/input.html +++ b/directives/input.html @@ -3,7 +3,7 @@ - + diff --git a/js/inputbar.js b/js/inputbar.js index e60ded1..6ebbccf 100644 --- a/js/inputbar.js +++ b/js/inputbar.js @@ -14,7 +14,7 @@ weechat.directive('inputBar', function() { command: '=command' }, - controller: ['$rootScope', '$scope', '$element', '$log', 'connection', 'imgur', 'models', 'IrcUtils', 'settings', function($rootScope, + controller: ['$rootScope', '$scope', '$element', '$log', 'connection', 'imgur', 'models', 'IrcUtils', 'settings', 'utils', function($rootScope, $scope, $element, //XXX do we need this? don't seem to be using it $log, @@ -22,7 +22,8 @@ weechat.directive('inputBar', function() { imgur, models, IrcUtils, - settings) { + settings, + utils) { // E.g. Turn :smile: into the unicode equivalent $scope.inputChanged = function() { @@ -503,6 +504,10 @@ weechat.directive('inputBar', function() { $scope.completeNick(); return true; }; + + $scope.hideCompleteNickButton = function() { + return !utils.isMobileUi(); + }; }] }; });