You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by dk...@apache.org on 2018/10/23 02:09:16 UTC
[sling-org-apache-sling-app-cms] 04/05: Moving the suffix-form
handler into the forms script
This is an automated email from the ASF dual-hosted git repository.
dklco pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-app-cms.git
commit 8e0d4baf2ea7368662fcc4cb9b40831362f4a8fd
Author: Dan Klco <dk...@apache.org>
AuthorDate: Mon Oct 22 22:08:16 2018 -0400
Moving the suffix-form handler into the forms script
---
ui/src/main/frontend/src/js/cms.form.js | 13 +++++++++++++
ui/src/main/frontend/src/js/cms.js | 11 -----------
2 files changed, 13 insertions(+), 11 deletions(-)
diff --git a/ui/src/main/frontend/src/js/cms.form.js b/ui/src/main/frontend/src/js/cms.form.js
index 237a8da..e1990e6 100644
--- a/ui/src/main/frontend/src/js/cms.form.js
+++ b/ui/src/main/frontend/src/js/cms.form.js
@@ -92,3 +92,16 @@ nomnom.decorate('.Get-Form', {
}
}
});
+
+
+nomnom.decorate('.suffix-form', {
+ events: {
+ submit: function (event) {
+ event.preventDefault();
+ var suffix = $(this).find('input[name=suffix]').val();
+ var path = $(this).attr('action');
+ window.location = path + suffix;
+ return false;
+ }
+ }
+});
diff --git a/ui/src/main/frontend/src/js/cms.js b/ui/src/main/frontend/src/js/cms.js
index 92c1789..efd9f7e 100644
--- a/ui/src/main/frontend/src/js/cms.js
+++ b/ui/src/main/frontend/src/js/cms.js
@@ -98,17 +98,6 @@ Sling.CMS = {
}
};
-nomnom.decorate('.suffix-form', {
- events: {
- submit: function (event) {
- event.preventDefault();
- var suffix = $(this).find('input[name=suffix]').val();
- var path = $(this).attr('action');
- window.location = path + suffix;
- return false;
- }
- }
-});
nomnom.decorate('.page-properties-container', {
callbacks : {