From 5d7446ece13d11c23539b845757731341150a974 Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Tue, 14 Apr 2015 14:39:51 +0100 Subject: [PATCH] remove unused search.html / search.js templates --- .../wagtailadmin/chooser/_search_form.html | 9 --------- .../templates/wagtailadmin/chooser/search.html | 13 ------------- .../templates/wagtailadmin/chooser/search.js | 9 --------- 3 files changed, 31 deletions(-) delete mode 100644 wagtail/wagtailadmin/templates/wagtailadmin/chooser/_search_form.html delete mode 100644 wagtail/wagtailadmin/templates/wagtailadmin/chooser/search.html delete mode 100644 wagtail/wagtailadmin/templates/wagtailadmin/chooser/search.js diff --git a/wagtail/wagtailadmin/templates/wagtailadmin/chooser/_search_form.html b/wagtail/wagtailadmin/templates/wagtailadmin/chooser/_search_form.html deleted file mode 100644 index 1cd683f91e..0000000000 --- a/wagtail/wagtailadmin/templates/wagtailadmin/chooser/_search_form.html +++ /dev/null @@ -1,9 +0,0 @@ -{% load i18n %} - diff --git a/wagtail/wagtailadmin/templates/wagtailadmin/chooser/search.html b/wagtail/wagtailadmin/templates/wagtailadmin/chooser/search.html deleted file mode 100644 index e511791708..0000000000 --- a/wagtail/wagtailadmin/templates/wagtailadmin/chooser/search.html +++ /dev/null @@ -1,13 +0,0 @@ -{% load i18n %} -{% trans "Choose a page" as choose_str %} -{% include "wagtailadmin/shared/header.html" with title=choose_str %} - -
- {% include 'wagtailadmin/chooser/_link_types.html' with current='internal' %} - - {% include 'wagtailadmin/chooser/_search_form.html' %} - -
{# content in here will be replaced by live search results #} - {% include 'wagtailadmin/chooser/_search_results.html' %} -
-
diff --git a/wagtail/wagtailadmin/templates/wagtailadmin/chooser/search.js b/wagtail/wagtailadmin/templates/wagtailadmin/chooser/search.js deleted file mode 100644 index d8ba5d70bc..0000000000 --- a/wagtail/wagtailadmin/templates/wagtailadmin/chooser/search.js +++ /dev/null @@ -1,9 +0,0 @@ -function(modal) { - $('.link-types a', modal.body).click(function() { - modal.loadUrl(this.href); - return false; - }); - - {% include 'wagtailadmin/chooser/_search_behaviour.js' %} - ajaxifySearchResults(); -}