Start work on adding a rule.

This commit is contained in:
James Cole
2016-01-14 16:41:15 +01:00
parent e02657a7c7
commit 5b1d9e1a0d
11 changed files with 733 additions and 464 deletions

27
public/js/rules/edit.js Normal file
View File

@@ -0,0 +1,27 @@
/*
* edit.js
* Copyright (C) 2016 Sander Dorigo
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
// make a line.
$(function () {
"use strict";
console.log("edit");
addNewTrigger();
addNewAction();
$('.add_rule_trigger').click(function () {
addNewTrigger();
return false;
});
$('.add_rule_action').click(function () {
addNewAction();
return false;
});
});