diff --git a/changedetectionio/forms.py b/changedetectionio/forms.py index 4ad1b1a7..d40cad06 100644 --- a/changedetectionio/forms.py +++ b/changedetectionio/forms.py @@ -8,6 +8,7 @@ from wtforms import ( PasswordField, RadioField, SelectField, + SelectMultipleField, StringField, SubmitField, TextAreaField, @@ -343,6 +344,10 @@ class watchForm(commonSettingsForm): check_unique_lines = BooleanField('Only trigger when new lines appear', default=False) trigger_text = StringListField('Trigger/wait for text', [validators.Optional(), ValidateListRegex()]) text_should_not_be_present = StringListField('Block change-detection if text matches', [validators.Optional(), ValidateListRegex()]) + trigger_on_add = BooleanField('Additions', default=True) + trigger_on_del = BooleanField('Deletions', default=True) + trigger_on_modify = BooleanField('Modifications', default=True) + webdriver_js_execute_code = TextAreaField('Execute JavaScript before change detection', render_kw={"rows": "5"}, validators=[validators.Optional()]) diff --git a/changedetectionio/templates/edit.html b/changedetectionio/templates/edit.html index b13afe46..22a3e38d 100644 --- a/changedetectionio/templates/edit.html +++ b/changedetectionio/templates/edit.html @@ -156,6 +156,18 @@ User-Agent: wonderbra 1.0") }}
+