Skip to content

Commit

Permalink
Fixed typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
martini committed Jan 5, 2016
1 parent 20c7396 commit 037b4ff
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion app/assets/javascripts/app/views/session.jst.eco
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<tr>
<td><% if session.data.user: %><%= session.data.user.displayName() %><% end %></td>
<td title="<%= session.data.user_agent %>"><%= session.data.user_agent %></td>
<td title="<%= session.data.remote_id %>"><% if session.data.geo && session.data.geo.country_name: %><%= session.data.geo.country_name %> <%= session.data.geo.city_name %><% else: %><%= session.data.remote_id %><% end %></td>
<td title="<%= session.data.remote_ip %>"><% if session.data.geo && session.data.geo.country_name: %><%= session.data.geo.country_name %> <%= session.data.geo.city_name %><% else: %><%= session.data.remote_ip %><% end %></td>
<td><%- @humanTime(session.created_at) %></td>
<td><%- @humanTime(session.updated_at) %></td>
<td><a href="#" data-session-id="<%- session.id %>" class="js-delete" title="<%- @Ti('Delete') %>"><%- @Icon('trash') %></a></td>
Expand Down
6 changes: 3 additions & 3 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ def session_update
session[:ping] = Time.zone.now.iso8601

# check if remote ip need to be updated
if !session[:remote_id] || session[:remote_id] != request.remote_ip
session[:remote_id] = request.remote_ip
if !session[:remote_ip] || session[:remote_ip] != request.remote_ip
session[:remote_ip] = request.remote_ip
session[:geo] = Service::GeoIp.location(request.remote_ip)
end

Expand Down Expand Up @@ -122,7 +122,7 @@ def user_device_update
UserDevice.action(
session[:user_device_id],
session[:user_agent],
session[:remote_id],
session[:remote_ip],
session[:user_id],
)
end
Expand Down
6 changes: 3 additions & 3 deletions lib/sessions/event/chat_session_init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ def run

# geo ip lookup
geo_ip = nil
if @remote_id
geo_ip = Service::GeoIp.location(@remote_id)
if @remote_ip
geo_ip = Service::GeoIp.location(@remote_ip)
end

# create chat session
Expand All @@ -17,7 +17,7 @@ def run
state: 'waiting',
preferences: {
participants: [@client_id],
remote_id: @remote_id,
remote_ip: @remote_ip,
geo_ip: geo_ip,
},
)
Expand Down
4 changes: 2 additions & 2 deletions public/assets/chat/chat.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ do($ = window.jQuery, window) ->
isOpen: false
blinkOnlineInterval: null
stopBlinOnlineStateTimeout: null
showTimeEveryXMinutes: 1
showTimeEveryXMinutes: 2
lastTimestamp: null
lastAddedType: null
inputTimeout: null
Expand All @@ -188,7 +188,7 @@ do($ = window.jQuery, window) ->
'Today': 'Heute'
'Send': 'Senden'
'Compose your message...': 'Ihre Nachricht...'
'All colleges are busy.': 'Alle Kollegen sind belegt.'
'All colleagues are busy.': 'Alle Kollegen sind belegt.'
'You are on waiting list position <strong>%s</strong>.': 'Sie sind in der Warteliste an der Position <strong>%s</strong>.'
'Start new conversation': 'Neue Konversation starten'
'Since you didn\'t respond in the last %s minutes your conversation with <strong>%s</strong> got closed.': 'Da Sie in den letzten %s Minuten nichts geschrieben haben wurde Ihre Konversation mit <strong>%s</strong> geschlossen.'
Expand Down
6 changes: 3 additions & 3 deletions public/assets/chat/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ var bind = function(fn, me){ return function(){ return fn.apply(me, arguments);

ZammadChat.prototype.stopBlinOnlineStateTimeout = null;

ZammadChat.prototype.showTimeEveryXMinutes = 1;
ZammadChat.prototype.showTimeEveryXMinutes = 2;

ZammadChat.prototype.lastTimestamp = null;

Expand All @@ -314,7 +314,7 @@ var bind = function(fn, me){ return function(){ return fn.apply(me, arguments);
'Today': 'Heute',
'Send': 'Senden',
'Compose your message...': 'Ihre Nachricht...',
'All colleges are busy.': 'Alle Kollegen sind belegt.',
'All colleagues are busy.': 'Alle Kollegen sind belegt.',
'You are on waiting list position <strong>%s</strong>.': 'Sie sind in der Warteliste an der Position <strong>%s</strong>.',
'Start new conversation': 'Neue Konversation starten',
'Since you didn\'t respond in the last %s minutes your conversation with <strong>%s</strong> got closed.': 'Da Sie in den letzten %s Minuten nichts geschrieben haben wurde Ihre Konversation mit <strong>%s</strong> geschlossen.',
Expand Down Expand Up @@ -1709,7 +1709,7 @@ window.zammadChatTemplates["waiting"] = function (__obj) {
(function() {
__out.push('<div class="zammad-chat-modal">\n <div class="zammad-chat-modal-text">\n <span class="zammad-chat-loading-animation">\n <span class="zammad-chat-loading-circle"></span>\n <span class="zammad-chat-loading-circle"></span>\n <span class="zammad-chat-loading-circle"></span>\n </span>\n ');

__out.push(this.T('All colleges are busy.'));
__out.push(this.T('All colleagues are busy.'));

__out.push('<br>\n ');

Expand Down
4 changes: 2 additions & 2 deletions public/assets/chat/chat.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/assets/chat/views/waiting.eco
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<span class="zammad-chat-loading-circle"></span>
<span class="zammad-chat-loading-circle"></span>
</span>
<%- @T('All colleges are busy.') %><br>
<%- @T('All colleagues are busy.') %><br>
<%- @T('You are on waiting list position <strong>%s</strong>.', @position) %>
</div>
</div>
4 changes: 2 additions & 2 deletions script/websocket-server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
last_ping: Time.now.utc.to_i,
error_count: 0,
headers: headers,
remote_id: remote_ip,
remote_ip: remote_ip,
}
end
}
Expand Down Expand Up @@ -158,7 +158,7 @@
event: data['event'],
payload: data,
session: @clients[client_id][:session],
remote_ip: @clients[client_id][:remote_id],
remote_ip: @clients[client_id][:remote_ip],
client_id: client_id,
clients: @clients,
options: @options,
Expand Down

0 comments on commit 037b4ff

Please sign in to comment.