From fdef757fd09b00a83354cffe61e4d2ec784e0e94 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Thu, 27 Jun 2019 08:22:53 -0400 Subject: [PATCH] Add redactions app JavaScript dependencies Signed-off-by: Roberto Rosario --- mayan/apps/redactions/apps.py | 1 + mayan/apps/redactions/dependencies.py | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 mayan/apps/redactions/dependencies.py diff --git a/mayan/apps/redactions/apps.py b/mayan/apps/redactions/apps.py index 45409d76db..4c729c2684 100644 --- a/mayan/apps/redactions/apps.py +++ b/mayan/apps/redactions/apps.py @@ -10,6 +10,7 @@ from mayan.apps.common.menus import ( menu_list_facet, menu_object, menu_secondary, ) +from .dependencies import * # NOQA from .links import ( link_redaction_create, link_redaction_delete, link_redaction_edit, link_redaction_list diff --git a/mayan/apps/redactions/dependencies.py b/mayan/apps/redactions/dependencies.py new file mode 100644 index 0000000000..698a1a09f4 --- /dev/null +++ b/mayan/apps/redactions/dependencies.py @@ -0,0 +1,15 @@ +from __future__ import unicode_literals + +from django.utils.translation import ugettext_lazy as _ + +from mayan.apps.dependencies.classes import ( + GoogleFontDependency, JavaScriptDependency +) + +JavaScriptDependency( + label=_('JavaScript image cropper'), module=__name__, name='cropperjs', + version_string='=1.4.1' +) +JavaScriptDependency( + module=__name__, name='jquery-cropper', version_string='=1.0.0' +)