web-manager 3.1.41 → 3.1.42
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +12 -6
- package/package.json +1 -1
package/index.js
CHANGED
@@ -587,7 +587,7 @@ function Manager() {
|
|
587
587
|
settings: {
|
588
588
|
openChatButton: {
|
589
589
|
background: '#237afc',
|
590
|
-
text: '#
|
590
|
+
text: '#fff',
|
591
591
|
},
|
592
592
|
},
|
593
593
|
},
|
@@ -598,7 +598,7 @@ function Manager() {
|
|
598
598
|
palette: {
|
599
599
|
popup: {
|
600
600
|
background: '#237afc',
|
601
|
-
text: '#
|
601
|
+
text: '#fff',
|
602
602
|
},
|
603
603
|
button: {
|
604
604
|
background: '#fff',
|
@@ -716,16 +716,22 @@ function Manager() {
|
|
716
716
|
|
717
717
|
var chatsyOps = options_user.libraries.chatsy;
|
718
718
|
if (chatsyOps.enabled) {
|
719
|
-
var preChatBtn = select('#prechat-btn');
|
719
|
+
var $preChatBtn = select('#prechat-btn');
|
720
|
+
var $preChatBtnSvg = select('#prechat-btn svg path');
|
721
|
+
var settings = chatsyOps.config.settings
|
720
722
|
|
721
|
-
preChatBtn.css({
|
722
|
-
background:
|
723
|
+
$preChatBtn.css({
|
724
|
+
background: settings.background,
|
723
725
|
})
|
724
726
|
.show();
|
725
727
|
|
728
|
+
$preChatBtnSvg.each(function ($el) {
|
729
|
+
$el.setAttribute('fill', settings.text)
|
730
|
+
})
|
731
|
+
|
726
732
|
window.chatsy = {};
|
727
733
|
window.chatsy.open = function() {
|
728
|
-
preChatBtn.get(0).click();
|
734
|
+
$preChatBtn.get(0).click();
|
729
735
|
}
|
730
736
|
}
|
731
737
|
|
package/package.json
CHANGED