diff --git a/css/glowingbear.css b/css/glowingbear.css index 139827b..3b20813 100644 --- a/css/glowingbear.css +++ b/css/glowingbear.css @@ -95,7 +95,7 @@ input#sendMessage { border: 0; width: 100%; } -.panel input { +.panel input, .panel .input-group { max-width: 300px; } input[type=text], input[type=password], .badge { diff --git a/index.html b/index.html index ceee349..f2b003a 100644 --- a/index.html +++ b/index.html @@ -45,27 +45,28 @@
- - -

Enter the hostname to the WeeChat relay

-
-
- - -

Enter the the port to the WeeChat relay

-
-
- + +
+ + +
Error wrong password
+ -

Password will be stored in your browser session

-
-
- - -

Read encryption instructions for help

+
+ +
+
+ +
diff --git a/js/websockets.js b/js/websockets.js index b14898f..e7dae9e 100644 --- a/js/websockets.js +++ b/js/websockets.js @@ -401,12 +401,12 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', $store.bind($scope, "host", "localhost"); $store.bind($scope, "port", "9001"); $store.bind($scope, "proto", "weechat"); - $store.bind($scope, "password", ""); $store.bind($scope, "ssl", false); $store.bind($scope, "lines", "40"); - // TODO checkbox for saving password or not? - // $scope.password = ""; - // + $store.bind($scope, "savepassword", false); + if($scope.savepassword) { + $store.bind($scope, "password", ""); + } // Save setting for displaying only buffers with unread messages $store.bind($scope, "onlyUnread", false);