Browse Source

Fixed settings

master
Igor Zhukov 11 years ago
parent
commit
2754df1c99
  1. 4
      app/index.html
  2. 9
      app/js/controllers.js
  3. 4
      app/js/services.js

4
app/index.html

@ -52,8 +52,8 @@ @@ -52,8 +52,8 @@
<script type="text/javascript" src="js/util.js"></script>
<script type="text/javascript" src="js/app.js?14"></script>
<script type="text/javascript" src="js/services.js?16"></script>
<script type="text/javascript" src="js/controllers.js?24"></script>
<script type="text/javascript" src="js/services.js?17"></script>
<script type="text/javascript" src="js/controllers.js?25"></script>
<script type="text/javascript" src="js/filters.js?3"></script>
<script type="text/javascript" src="js/directives.js?16"></script>

9
app/js/controllers.js

@ -602,11 +602,10 @@ angular.module('myApp.controllers', []) @@ -602,11 +602,10 @@ angular.module('myApp.controllers', [])
$scope.notify = {};
$scope.send = {};
AppConfigManager.get(['notify_nodesktop', 'notify_nosound', 'send_ctrlenter']).then(function (settings) {
$scope.notify.sound = !settings.notify_nosound;
$scope.notify.desktop = !settings.notify_nodesktop;
$scope.send.enter = settings.send_ctrlenter ? '' : '1';
console.log($scope.send.enter);
AppConfigManager.get('notify_nodesktop', 'notify_nosound', 'send_ctrlenter').then(function (settings) {
$scope.notify.desktop = !settings[0];
$scope.notify.sound = !settings[1];
$scope.send.enter = settings[2] ? '' : '1';
});
$scope.$watch('notify.sound', function(newValue) {

4
app/js/services.js

@ -1824,6 +1824,10 @@ angular.module('myApp.services', []) @@ -1824,6 +1824,10 @@ angular.module('myApp.services', [])
seqStart = seqStart || seq;
if (!seqStart) {
return true;
}
if (seqStart != curState.seq + 1) {
// console.log('seq hole', seqStart, curState.seq);
if (seqStart != curState.seq) {

Loading…
Cancel
Save