New setting for hiding timestamps

This commit is contained in:
Tor Hveem 2013-10-17 10:50:29 +02:00
parent c77746695f
commit 3a52840111
2 changed files with 14 additions and 1 deletions

View file

@ -149,6 +149,16 @@
</div>
</form>
</li>
<li class="">
<form class="form-inline" role="form">
<div class="checkbox">
<label>
<input type="checkbox" ng-model="notimestamp">
Hide timestamps
</label>
</div>
</form>
</li>
</ul>
</div>
<a ng-click="disconnect()">
@ -176,7 +186,7 @@
<table>
<tbody>
<tr class="bufferline" ng-repeat-start="bufferline in activeBuffer().lines">
<td class="time">
<td ng-hide="notimestamp" class="time">
<span class="date text-muted">
{{ bufferline.date | date:'HH:mm' }}
</span>

View file

@ -332,7 +332,10 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
// $scope.password = "";
//
// Save setting for displaying only buffers with unread messages
$store.bind($scope, "onlyUnread", false);
// Save setting for not showing timestamp
$store.bind($scope, "notimestamp", false);
$scope.setActiveBuffer = function(key) {