From 5232cc029fdcd1ae1aee6554c53f79933e8c59c7 Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Thu, 5 Mar 2020 21:30:03 +1100 Subject: [PATCH 1/2] docs: Fix simple typo, uniaue -> unique There is a small typo in marketing/views.py. Should read `unique` rather than `uniaue`. --- marketing/views.py | 4 ++-- static/js/ajaxForm.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/marketing/views.py b/marketing/views.py index 3a1c054e1..27b75e02d 100644 --- a/marketing/views.py +++ b/marketing/views.py @@ -630,7 +630,7 @@ def campaign_new(request): for e in links: llist.append(e.get('href')) - # get uniaue linnk + # get unique linnk links = set(llist) # Replace Links with new One @@ -1393,4 +1393,4 @@ def contacts_list_elastic_search(request): # # def get_context_data(self, *args, **kwargs): # # context = super(MarketingContactEmailSearch, self).get_context_data(*args, **kwargs) -# # return context \ No newline at end of file +# # return context diff --git a/static/js/ajaxForm.js b/static/js/ajaxForm.js index c67fc3327..5006b2cd8 100644 --- a/static/js/ajaxForm.js +++ b/static/js/ajaxForm.js @@ -114,7 +114,7 @@ $.fn.ajaxSubmit = function(options) { url = (typeof action === 'string') ? $.trim(action) : ''; url = url || window.location.href || ''; if (url) { - // clean url (don't include hash vaue) + // clean url (don't include hash value) url = (url.match(/^([^#]+)/)||[])[1]; } @@ -1274,4 +1274,4 @@ function log() { } } -})); \ No newline at end of file +})); From 4a747f5a43345a0491ed759922a3987896210252 Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Thu, 5 Mar 2020 21:31:18 +1100 Subject: [PATCH 2/2] Update views.py --- marketing/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/marketing/views.py b/marketing/views.py index 27b75e02d..961b4cd48 100644 --- a/marketing/views.py +++ b/marketing/views.py @@ -630,7 +630,7 @@ def campaign_new(request): for e in links: llist.append(e.get('href')) - # get unique linnk + # get unique link links = set(llist) # Replace Links with new One