This repository has been archived by the owner on Aug 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
76 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 0 additions & 42 deletions
42
Magento1/app/code/community/Werules/Chatbot/controllers/TelegramController.php
This file was deleted.
Oops, something went wrong.
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
Magento1/app/design/adminhtml/default/default/layout/werules_chatbot.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<layout> | ||
<default> <!-- TODO load this only on the module page --> | ||
<reference name="head"> | ||
<action method="addJs"><script>werules/chatbot/chatbot.js</script></action> | ||
<action method="addCss"><script>css/werules_chatbot/chatbot.css</script></action> | ||
</reference> | ||
</default> | ||
</layout> |
2 changes: 1 addition & 1 deletion
2
Magento1/app/design/frontend/base/default/template/chatbot/index.phtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Chatbot_Demo_Page | ||
Index Page |
2 changes: 1 addition & 1 deletion
2
Magento1/app/design/frontend/base/default/template/chatbot/messenger.phtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Chatbot_Demo_Page | ||
Messenger Page |
2 changes: 1 addition & 1 deletion
2
Magento1/app/design/frontend/base/default/template/chatbot/settings.phtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Chatbot_Demo_Page | ||
Settings Page |
2 changes: 1 addition & 1 deletion
2
Magento1/app/design/frontend/base/default/template/chatbot/telegram.phtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Chatbot_Demo_Page | ||
Telegram Page |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// display/hide match mode | ||
function werulesTogleMatchMode(element) | ||
{ | ||
//debugger; | ||
var val = element.value; | ||
var name = element.name; | ||
name = name.substr(0, name.lastIndexOf("[")) + "[similarity]"; | ||
var target = document.getElementsByName(name); | ||
if (val === 0) | ||
target[0].disabled = false; | ||
else | ||
target[0].disabled = true; | ||
} | ||
|
||
function werulesTogleEnable(element) | ||
{ | ||
//debugger; | ||
// var val = element.value; | ||
// var name = element.name; | ||
// if (val == 0) | ||
// { | ||
// name = name.substr(0, name.lastIndexOf("[")) + "[similarity]"; | ||
// var target = document.getElementsByName(name); | ||
// target[0].disabled = false; | ||
// } | ||
// else | ||
// { | ||
// name = name.substr(0, name.lastIndexOf("[")) + "[similarity]"; | ||
// var target = document.getElementsByName(name); | ||
// target[0].disabled = true; | ||
// } | ||
} | ||
|
||
// display/hide reply mode | ||
function werulesTogleReplyMode(element) | ||
{ | ||
//debugger; | ||
var val = element.value; | ||
var name = element.name; | ||
name = name.substr(0, name.lastIndexOf("[")) + "[command_id]"; | ||
var target = document.getElementsByName(name); | ||
if (val === 0) | ||
target[0].disabled = true; | ||
else | ||
{ | ||
//target[0].classList.remove("werules-disabled"); | ||
//target[0].style = ""; | ||
target[0].disabled = false; | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
Magento1/skin/adminhtml/base/default/css/werules_chatbot/chatbot.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/*backend css*/ | ||
.werules-disabled-input{ | ||
pointer-events: none; | ||
background-color: #ebebe4; | ||
color: #545454; | ||
} | ||
|
||
.werules-disabled-select{ | ||
pointer-events: none; | ||
background-color: #FFFFFF; | ||
color: #808080; | ||
} |
Binary file added
BIN
+6.1 KB
Magento1/skin/frontend/base/default/images/werules_chatbot/messenger-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.1 KB
Magento2/app/code/Werules/Chatbot/view/frontend/web/image/messenger-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.