Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
add static files
Browse files Browse the repository at this point in the history
  • Loading branch information
blopa committed Dec 10, 2017
1 parent 8471e1a commit df0cfb6
Show file tree
Hide file tree
Showing 11 changed files with 76 additions and 47 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

class Werules_Chatbot_IndexController extends Mage_Core_Controller_Front_Action{
class Werules_Chatbot_CustomerController extends Mage_Core_Controller_Front_Action{
public function IndexAction() {

$this->loadLayout();
Expand Down

This file was deleted.

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>
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Chatbot_Demo_Page
Index Page
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Chatbot_Demo_Page
Messenger Page
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Chatbot_Demo_Page
Settings Page
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Chatbot_Demo_Page
Telegram Page
50 changes: 50 additions & 0 deletions Magento1/js/werules/chatbot/chatbot.js
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;
}
}
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;
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit df0cfb6

Please sign in to comment.