diff --git a/i18n/en-US.json b/i18n/en-US.json index fdf8f93..81b57d0 100644 --- a/i18n/en-US.json +++ b/i18n/en-US.json @@ -357,7 +357,7 @@ "errorCallerId": "Before configuring the Caller-ID of this user, you need to assign him a number", "errorNumberFaxing": "Before configuring the Faxing number of this user, you need to get some spare numbers on your account (You can buy new numbers in the Numbers section on the left menu).", "featureOn": "ON", - "includeInDirectory": "Include User to Company Directory", + "includeInDirectory": "Include User in the Company Directory", "noMatchingDevices": "No devices matching your search", "noMatchingNumbers": "There were no numbers found matching your search", "noMatchingUser": "No data found matching your search", diff --git a/submodules/devices/devices.js b/submodules/devices/devices.js index 702ae74..ecdbdfc 100644 --- a/submodules/devices/devices.js +++ b/submodules/devices/devices.js @@ -90,7 +90,7 @@ define(function(require){ if(_deviceId) { var row = parent.find('.grid-row[data-id=' + _deviceId + ']'); - monster.ui.fade(row, { + monster.ui.hightlight(row, { endColor: '#FCFCFC' }); } diff --git a/submodules/groups/groups.js b/submodules/groups/groups.js index 5abb9fe..0967c58 100644 --- a/submodules/groups/groups.js +++ b/submodules/groups/groups.js @@ -48,11 +48,11 @@ define(function(require){ parent .empty() .append(template); - + if(_groupId) { var cells = parent.find('.grid-row[data-id=' + _groupId + '] .grid-cell'); - monster.ui.fade(cells); + monster.ui.hightlight(cells); } for (var group in dataTemplate.groups) { diff --git a/submodules/strategy/strategy.css b/submodules/strategy/strategy.css index 553fffd..78380f5 100644 --- a/submodules/strategy/strategy.css +++ b/submodules/strategy/strategy.css @@ -196,6 +196,10 @@ padding: 15px; } +#strategy_container .element-container.strategy-hours .custom-hours-header .timezone { + margin-left: 5px; +} + #strategy_container .element-container.strategy-hours .custom-days { border: solid 1px #ccc; border-radius: 10px; diff --git a/submodules/strategy/strategy.js b/submodules/strategy/strategy.js index b37318d..7d6709f 100644 --- a/submodules/strategy/strategy.js +++ b/submodules/strategy/strategy.js @@ -12,7 +12,8 @@ define(function(require){ }, subscribe: { - 'voip.strategy.render': 'strategyRender' + 'voip.strategy.render': 'strategyRender', + 'auth.currentAccountUpdated': '_strategyOnCurrentAccountUpdated' }, weekdays: ["monday","tuesday","wednesday","thursday","friday","saturday","sunday"], @@ -217,7 +218,7 @@ define(function(require){ weekdaysRules = strategyData.temporalRules.weekdays, templateData = { alwaysOpen: true, - companyTimezone: timezone.formatTimezone(strategyData.callflows["MainCallflow"].flow.data.timezone), + companyTimezone: timezone.formatTimezone(strategyData.callflows["MainCallflow"].flow.data.timezone || monster.apps["auth"].currentAccount.timezone), days: [], lunchbreak: { enabled: (strategyData.temporalRules.lunchbreak.id in strategyData.callflows["MainCallflow"].flow.children), @@ -1751,9 +1752,7 @@ define(function(require){ module:"callflow" } }, - data: { - timezone: monster.apps["auth"].currentAccount.timezone - }, + data: {}, module: "temporal_route" } } @@ -1767,6 +1766,7 @@ define(function(require){ } }); } else { + delete results["MainCallflow"].flow.data.timezone; callback(results); } }); @@ -2273,6 +2273,11 @@ define(function(require){ callback(data.data); } }); + }, + + _strategyOnCurrentAccountUpdated: function(accountData) { + var self = this; + $('#strategy_custom_hours_timezone').text(timezone.formatTimezone(accountData.timezone)); } }; diff --git a/submodules/users/users.js b/submodules/users/users.js index 95264bd..5ce1ae4 100644 --- a/submodules/users/users.js +++ b/submodules/users/users.js @@ -206,7 +206,7 @@ define(function(require){ template.find('.user-rows').append(templateUser); }); - template.find('[data-toggle="tooltip"]').tooltip(); + template.find('[data-toggle="tooltip"]').tooltip({ container: 'body'}); self.usersBindEvents(template, parent, dataTemplate); @@ -217,7 +217,7 @@ define(function(require){ if(_userId) { var cells = parent.find('.grid-row[data-id=' + _userId + '] .grid-cell'); - monster.ui.fade(cells); + monster.ui.hightlight(cells); } if ( dataTemplate.users.length == 0) { @@ -575,7 +575,9 @@ define(function(require){ //FancyCheckboxes. monster.ui.prettyCheck.create(template); - row.find('.edit-user').append(template).slideDown(); + row.find('.edit-user').append(template).slideDown(400, function() { + $('body').animate({ scrollTop: row.offset().top - (window.innerHeight - row.height() - 10) }); + }); $('body').append($('
')); }); @@ -2569,7 +2571,7 @@ define(function(require){ timezone.populateDropdown(template.find('#user_timezone'), dataTemplate.timezone); - template.find('[data-toggle="tooltip"]').tooltip(); + template.find('[data-toggle="tooltip"]').tooltip({ container: 'body'}); callbackAfterFormat && callbackAfterFormat(template, dataTemplate); } diff --git a/views/strategy-hours.html b/views/strategy-hours.html index 3bf15c7..9f8a501 100644 --- a/views/strategy-hours.html +++ b/views/strategy-hours.html @@ -23,8 +23,11 @@