Fixed typo and removed trailing spaces.

This commit is contained in:
Thorsten Eckel 2016-01-20 19:09:53 +01:00
parent c775463fd8
commit fe67f33e42
2 changed files with 76 additions and 76 deletions

View file

@ -179,7 +179,7 @@ do($ = window.jQuery, window) ->
initialQueueDelay: 10000 initialQueueDelay: 10000
translations: translations:
de: de:
'<strong>Chat</strong> with us!': '<strong>Chat</strong> mit uns!' '<strong>Chat</strong> with us!': '<strong>Chatte</strong> mit uns!'
'Online': 'Online' 'Online': 'Online'
'Online': 'Online' 'Online': 'Online'
'Offline': 'Offline' 'Offline': 'Offline'

View file

@ -45,15 +45,15 @@ window.zammadChatTemplates["agent"] = function (__obj) {
__out.push(__sanitize(this.agent.avatar)); __out.push(__sanitize(this.agent.avatar));
__out.push('">\n'); __out.push('">\n');
} }
__out.push('\n<span class="zammad-chat-agent-sentence">\n <span class="zammad-chat-agent-name">'); __out.push('\n<span class="zammad-chat-agent-sentence">\n <span class="zammad-chat-agent-name">');
__out.push(__sanitize(this.agent.name)); __out.push(__sanitize(this.agent.name));
__out.push('</span>\n</span>'); __out.push('</span>\n</span>');
}).call(this); }).call(this);
}).call(__obj); }).call(__obj);
__obj.safe = __objSafe, __obj.escape = __escape; __obj.safe = __objSafe, __obj.escape = __escape;
return __out.join(''); return __out.join('');
@ -69,7 +69,7 @@ window.zammadChatTemplates["agent"] = function (__obj) {
* *
* Autogrow Textarea Plugin Version v3.0 * Autogrow Textarea Plugin Version v3.0
* http://www.technoreply.com/autogrow-textarea-plugin-3-0 * http://www.technoreply.com/autogrow-textarea-plugin-3-0
* *
* THIS PLUGIN IS DELIVERD ON A PAY WHAT YOU WHANT BASIS. IF THE PLUGIN WAS USEFUL TO YOU, PLEASE CONSIDER BUYING THE PLUGIN HERE : * THIS PLUGIN IS DELIVERD ON A PAY WHAT YOU WHANT BASIS. IF THE PLUGIN WAS USEFUL TO YOU, PLEASE CONSIDER BUYING THE PLUGIN HERE :
* https://sites.fastspring.com/technoreply/instant/autogrowtextareaplugin * https://sites.fastspring.com/technoreply/instant/autogrowtextareaplugin
* *
@ -117,16 +117,16 @@ jQuery.fn.autoGrow = function(options) {
// Create a mirror // Create a mirror
var mirror = createMirror(this); var mirror = createMirror(this);
// Style the mirror // Style the mirror
mirror.style.display = 'none'; mirror.style.display = 'none';
mirror.style.wordWrap = 'break-word'; mirror.style.wordWrap = 'break-word';
mirror.style.whiteSpace = 'normal'; mirror.style.whiteSpace = 'normal';
mirror.style.padding = jQuery(this).css('paddingTop') + ' ' + mirror.style.padding = jQuery(this).css('paddingTop') + ' ' +
jQuery(this).css('paddingRight') + ' ' + jQuery(this).css('paddingRight') + ' ' +
jQuery(this).css('paddingBottom') + ' ' + jQuery(this).css('paddingBottom') + ' ' +
jQuery(this).css('paddingLeft'); jQuery(this).css('paddingLeft');
mirror.style.width = jQuery(this).css('width'); mirror.style.width = jQuery(this).css('width');
mirror.style.fontFamily = jQuery(this).css('font-family'); mirror.style.fontFamily = jQuery(this).css('font-family');
mirror.style.fontSize = jQuery(this).css('font-size'); mirror.style.fontSize = jQuery(this).css('font-size');
@ -453,7 +453,7 @@ var bind = function(fn, me){ return function(){ return fn.apply(me, arguments);
ZammadChat.prototype.translations = { ZammadChat.prototype.translations = {
de: { de: {
'<strong>Chat</strong> with us!': '<strong>Chat</strong> mit uns!', '<strong>Chat</strong> with us!': '<strong>Chatte</strong> mit uns!',
'Online': 'Online', 'Online': 'Online',
'Online': 'Online', 'Online': 'Online',
'Offline': 'Offline', 'Offline': 'Offline',
@ -1263,45 +1263,45 @@ window.zammadChatTemplates["chat"] = function (__obj) {
(function() { (function() {
(function() { (function() {
__out.push('<div class="zammad-chat'); __out.push('<div class="zammad-chat');
if (this.flat) { if (this.flat) {
__out.push(__sanitize(' zammad-chat--flat')); __out.push(__sanitize(' zammad-chat--flat'));
} }
__out.push('"'); __out.push('"');
if (this.fontSize) { if (this.fontSize) {
__out.push(__sanitize(" style='font-size: " + this.fontSize + "'")); __out.push(__sanitize(" style='font-size: " + this.fontSize + "'"));
} }
__out.push('>\n <div class="zammad-chat-header js-chat-open"'); __out.push('>\n <div class="zammad-chat-header js-chat-open"');
if (this.background) { if (this.background) {
__out.push(__sanitize(" style='background: " + this.background + "'")); __out.push(__sanitize(" style='background: " + this.background + "'"));
} }
__out.push('>\n <div class="zammad-chat-header-controls">\n <span class="zammad-chat-agent-status zammad-chat-is-hidden" data-status="online"></span>\n <span class="zammad-chat-header-icon">\n <svg class="zammad-chat-header-icon-open" viewBox="0 0 13 7"><path d="M10.807 7l1.4-1.428-5-4.9L6.5-.02l-.7.7-4.9 4.9 1.414 1.413L6.5 2.886 10.807 7z" fill-rule="evenodd"/></svg>\n <svg class="zammad-chat-header-icon-close js-chat-close" viewBox="0 0 13 13"><path d="m2.241.12l-2.121 2.121 4.243 4.243-4.243 4.243 2.121 2.121 4.243-4.243 4.243 4.243 2.121-2.121-4.243-4.243 4.243-4.243-2.121-2.121-4.243 4.243-4.243-4.243" fill-rule="evenodd"/></svg>\n </span>\n </div>\n <div class="zammad-chat-agent zammad-chat-is-hidden">\n </div>\n <div class="zammad-chat-welcome">\n <svg class="zammad-chat-icon" viewBox="0 0 24 24"><path d="M2 5C2 4 3 3 4 3h16c1 0 2 1 2 2v10C22 16 21 17 20 17H4C3 17 2 16 2 15V5zM12 17l6 4v-4h-6z" fill-rule="evenodd"/></svg>\n <span class="zammad-chat-welcome-text">'); __out.push('>\n <div class="zammad-chat-header-controls">\n <span class="zammad-chat-agent-status zammad-chat-is-hidden" data-status="online"></span>\n <span class="zammad-chat-header-icon">\n <svg class="zammad-chat-header-icon-open" viewBox="0 0 13 7"><path d="M10.807 7l1.4-1.428-5-4.9L6.5-.02l-.7.7-4.9 4.9 1.414 1.413L6.5 2.886 10.807 7z" fill-rule="evenodd"/></svg>\n <svg class="zammad-chat-header-icon-close js-chat-close" viewBox="0 0 13 13"><path d="m2.241.12l-2.121 2.121 4.243 4.243-4.243 4.243 2.121 2.121 4.243-4.243 4.243 4.243 2.121-2.121-4.243-4.243 4.243-4.243-2.121-2.121-4.243 4.243-4.243-4.243" fill-rule="evenodd"/></svg>\n </span>\n </div>\n <div class="zammad-chat-agent zammad-chat-is-hidden">\n </div>\n <div class="zammad-chat-welcome">\n <svg class="zammad-chat-icon" viewBox="0 0 24 24"><path d="M2 5C2 4 3 3 4 3h16c1 0 2 1 2 2v10C22 16 21 17 20 17H4C3 17 2 16 2 15V5zM12 17l6 4v-4h-6z" fill-rule="evenodd"/></svg>\n <span class="zammad-chat-welcome-text">');
__out.push(this.T(this.title)); __out.push(this.T(this.title));
__out.push('</span>\n </div>\n </div>\n <div class="zammad-chat-body"></div>\n <form class="zammad-chat-controls">\n <textarea class="zammad-chat-input" rows="1" placeholder="'); __out.push('</span>\n </div>\n </div>\n <div class="zammad-chat-body"></div>\n <form class="zammad-chat-controls">\n <textarea class="zammad-chat-input" rows="1" placeholder="');
__out.push(this.T('Compose your message...')); __out.push(this.T('Compose your message...'));
__out.push('"></textarea>\n <button type="submit" class="zammad-chat-button zammad-chat-send"'); __out.push('"></textarea>\n <button type="submit" class="zammad-chat-button zammad-chat-send"');
if (this.background) { if (this.background) {
__out.push(__sanitize(" style='background: " + this.background + "'")); __out.push(__sanitize(" style='background: " + this.background + "'"));
} }
__out.push('>'); __out.push('>');
__out.push(this.T('Send')); __out.push(this.T('Send'));
__out.push('</button>\n </form>\n</div>'); __out.push('</button>\n </form>\n</div>');
}).call(this); }).call(this);
}).call(__obj); }).call(__obj);
__obj.safe = __objSafe, __obj.escape = __escape; __obj.safe = __objSafe, __obj.escape = __escape;
return __out.join(''); return __out.join('');
@ -1350,7 +1350,7 @@ window.zammadChatTemplates["customer_timeout"] = function (__obj) {
(function() { (function() {
(function() { (function() {
__out.push('<div class="zammad-chat-modal">\n <div class="zammad-chat-modal-text">\n '); __out.push('<div class="zammad-chat-modal">\n <div class="zammad-chat-modal-text">\n ');
if (this.agent) { if (this.agent) {
__out.push('\n '); __out.push('\n ');
__out.push(this.T('Since you didn\'t respond in the last %s minutes your conversation with <strong>%s</strong> got closed.', this.delay, this.agent)); __out.push(this.T('Since you didn\'t respond in the last %s minutes your conversation with <strong>%s</strong> got closed.', this.delay, this.agent));
@ -1360,21 +1360,21 @@ window.zammadChatTemplates["customer_timeout"] = function (__obj) {
__out.push(this.T('Since you didn\'t respond in the last %s minutes your conversation got closed.', this.delay)); __out.push(this.T('Since you didn\'t respond in the last %s minutes your conversation got closed.', this.delay));
__out.push('\n '); __out.push('\n ');
} }
__out.push('\n <br>\n <div class="zammad-chat-button js-restart"'); __out.push('\n <br>\n <div class="zammad-chat-button js-restart"');
if (this.background) { if (this.background) {
__out.push(__sanitize(" style='background: " + this.background + "'")); __out.push(__sanitize(" style='background: " + this.background + "'"));
} }
__out.push('>'); __out.push('>');
__out.push(this.T('Start new conversation')); __out.push(this.T('Start new conversation'));
__out.push('</div>\n </div>\n</div>'); __out.push('</div>\n </div>\n</div>');
}).call(this); }).call(this);
}).call(__obj); }).call(__obj);
__obj.safe = __objSafe, __obj.escape = __escape; __obj.safe = __objSafe, __obj.escape = __escape;
return __out.join(''); return __out.join('');
@ -1423,13 +1423,13 @@ window.zammadChatTemplates["loader"] = function (__obj) {
(function() { (function() {
(function() { (function() {
__out.push('<div class="zammad-chat-modal">\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 <span class="zammad-chat-modal-text">'); __out.push('<div class="zammad-chat-modal">\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 <span class="zammad-chat-modal-text">');
__out.push(this.T('Connecting')); __out.push(this.T('Connecting'));
__out.push('</span>\n</div>'); __out.push('</span>\n</div>');
}).call(this); }).call(this);
}).call(__obj); }).call(__obj);
__obj.safe = __objSafe, __obj.escape = __escape; __obj.safe = __objSafe, __obj.escape = __escape;
return __out.join(''); return __out.join('');
@ -1478,25 +1478,25 @@ window.zammadChatTemplates["message"] = function (__obj) {
(function() { (function() {
(function() { (function() {
__out.push('<div class="zammad-chat-message zammad-chat-message--'); __out.push('<div class="zammad-chat-message zammad-chat-message--');
__out.push(__sanitize(this.from)); __out.push(__sanitize(this.from));
__out.push(__sanitize(this.unreadClass)); __out.push(__sanitize(this.unreadClass));
__out.push('">\n <span class="zammad-chat-message-body"'); __out.push('">\n <span class="zammad-chat-message-body"');
if (this.background && this.from === 'customer') { if (this.background && this.from === 'customer') {
__out.push(__sanitize(" style='background: " + this.background + "'")); __out.push(__sanitize(" style='background: " + this.background + "'"));
} }
__out.push('>'); __out.push('>');
__out.push(this.message); __out.push(this.message);
__out.push('</span>\n</div>'); __out.push('</span>\n</div>');
}).call(this); }).call(this);
}).call(__obj); }).call(__obj);
__obj.safe = __objSafe, __obj.escape = __escape; __obj.safe = __objSafe, __obj.escape = __escape;
return __out.join(''); return __out.join('');
@ -1545,13 +1545,13 @@ window.zammadChatTemplates["status"] = function (__obj) {
(function() { (function() {
(function() { (function() {
__out.push('<div class="zammad-chat-status">\n <div class="zammad-chat-status-inner">\n '); __out.push('<div class="zammad-chat-status">\n <div class="zammad-chat-status-inner">\n ');
__out.push(this.status); __out.push(this.status);
__out.push('\n </div>\n</div>'); __out.push('\n </div>\n</div>');
}).call(this); }).call(this);
}).call(__obj); }).call(__obj);
__obj.safe = __objSafe, __obj.escape = __escape; __obj.safe = __objSafe, __obj.escape = __escape;
return __out.join(''); return __out.join('');
@ -1600,17 +1600,17 @@ window.zammadChatTemplates["timestamp"] = function (__obj) {
(function() { (function() {
(function() { (function() {
__out.push('<div class="zammad-chat-timestamp"><strong>'); __out.push('<div class="zammad-chat-timestamp"><strong>');
__out.push(__sanitize(this.label)); __out.push(__sanitize(this.label));
__out.push('</strong> '); __out.push('</strong> ');
__out.push(__sanitize(this.time)); __out.push(__sanitize(this.time));
__out.push('</div>'); __out.push('</div>');
}).call(this); }).call(this);
}).call(__obj); }).call(__obj);
__obj.safe = __objSafe, __obj.escape = __escape; __obj.safe = __objSafe, __obj.escape = __escape;
return __out.join(''); return __out.join('');
@ -1659,9 +1659,9 @@ window.zammadChatTemplates["typingIndicator"] = function (__obj) {
(function() { (function() {
(function() { (function() {
__out.push('<div class="zammad-chat-message zammad-chat-message--typing zammad-chat-message--agent">\n <span class="zammad-chat-message-body">\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 </span>\n</div>'); __out.push('<div class="zammad-chat-message zammad-chat-message--typing zammad-chat-message--agent">\n <span class="zammad-chat-message-body">\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 </span>\n</div>');
}).call(this); }).call(this);
}).call(__obj); }).call(__obj);
__obj.safe = __objSafe, __obj.escape = __escape; __obj.safe = __objSafe, __obj.escape = __escape;
return __out.join(''); return __out.join('');
@ -1710,17 +1710,17 @@ window.zammadChatTemplates["waiting"] = function (__obj) {
(function() { (function() {
(function() { (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('<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 colleagues are busy.')); __out.push(this.T('All colleagues are busy.'));
__out.push('<br>\n '); __out.push('<br>\n ');
__out.push(this.T('You are on waiting list position <strong>%s</strong>.', this.position)); __out.push(this.T('You are on waiting list position <strong>%s</strong>.', this.position));
__out.push('\n </div>\n</div>'); __out.push('\n </div>\n</div>');
}).call(this); }).call(this);
}).call(__obj); }).call(__obj);
__obj.safe = __objSafe, __obj.escape = __escape; __obj.safe = __objSafe, __obj.escape = __escape;
return __out.join(''); return __out.join('');
@ -1769,23 +1769,23 @@ window.zammadChatTemplates["waiting_list_timeout"] = function (__obj) {
(function() { (function() {
(function() { (function() {
__out.push('<div class="zammad-chat-modal">\n <div class="zammad-chat-modal-text">\n '); __out.push('<div class="zammad-chat-modal">\n <div class="zammad-chat-modal-text">\n ');
__out.push(this.T('We are sorry, it takes longer as expected to get an empty slot. Please try again later or send us an email. Thank you!')); __out.push(this.T('We are sorry, it takes longer as expected to get an empty slot. Please try again later or send us an email. Thank you!'));
__out.push('\n <br>\n <div class="zammad-chat-button js-restart"'); __out.push('\n <br>\n <div class="zammad-chat-button js-restart"');
if (this.background) { if (this.background) {
__out.push(__sanitize(" style='background: " + this.background + "'")); __out.push(__sanitize(" style='background: " + this.background + "'"));
} }
__out.push('>'); __out.push('>');
__out.push(this.T('Start new conversation')); __out.push(this.T('Start new conversation'));
__out.push('</div>\n </div>\n</div>'); __out.push('</div>\n </div>\n</div>');
}).call(this); }).call(this);
}).call(__obj); }).call(__obj);
__obj.safe = __objSafe, __obj.escape = __escape; __obj.safe = __objSafe, __obj.escape = __escape;
return __out.join(''); return __out.join('');