From 458aac971ddd33d62849b1394082a35259647f81 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Sun, 4 May 2014 16:32:30 +0200 Subject: [PATCH] Removed trash HTML --- public_html/media/js/core.js | 2 +- src/Controllers/TagController.php | 2 -- src/Views/auth-login.phtml | 2 -- src/Views/comment-add.phtml | 1 - src/Views/comment-edit.phtml | 2 -- src/Views/post-edit.phtml | 2 -- src/Views/post-upload.phtml | 2 -- src/Views/tag-mass-tag.phtml | 5 ----- src/Views/tag-merge.phtml | 2 -- src/Views/tag-rename.phtml | 2 -- src/Views/user-delete.phtml | 2 -- src/Views/user-edit.phtml | 2 -- src/Views/user-registration.phtml | 2 -- src/Views/user-select.phtml | 2 -- src/Views/user-settings.phtml | 2 -- 15 files changed, 1 insertion(+), 31 deletions(-) diff --git a/public_html/media/js/core.js b/public_html/media/js/core.js index 41ff3972..0fa7cf7a 100644 --- a/public_html/media/js/core.js +++ b/public_html/media/js/core.js @@ -112,7 +112,7 @@ $(function() aDom.addClass('inactive'); var url = $(this).attr('href') + '?json'; - $.post(url, {submit: 1}).success(function(data) + $.post(url).success(function(data) { if (aDom.hasAttr('data-redirect-url')) window.location.href = aDom.attr('data-redirect-url'); diff --git a/src/Controllers/TagController.php b/src/Controllers/TagController.php index cb879c75..f05c9c4d 100644 --- a/src/Controllers/TagController.php +++ b/src/Controllers/TagController.php @@ -117,8 +117,6 @@ class TagController $context->viewName = 'tag-list-wrapper'; Access::assert(new Privilege(Privilege::MassTag)); - if (!InputHelper::get('submit')) - return; $suppliedOldPage = intval(InputHelper::get('old-page')); $suppliedOldQuery = InputHelper::get('old-query'); diff --git a/src/Views/auth-login.phtml b/src/Views/auth-login.phtml index ba2f4081..3e5cc2fb 100644 --- a/src/Views/auth-login.phtml +++ b/src/Views/auth-login.phtml @@ -36,8 +36,6 @@ Assets::addStylesheet('auth.css'); context) ?> - -
diff --git a/src/Views/comment-add.phtml b/src/Views/comment-add.phtml index 96213d13..cdae4709 100644 --- a/src/Views/comment-add.phtml +++ b/src/Views/comment-add.phtml @@ -17,7 +17,6 @@ Assets::addScript('comment-edit.js');
-
  diff --git a/src/Views/comment-edit.phtml b/src/Views/comment-edit.phtml index e7f2271a..92a46ce1 100644 --- a/src/Views/comment-edit.phtml +++ b/src/Views/comment-edit.phtml @@ -20,8 +20,6 @@ Assets::addScript('comment-edit.js');
- -
  diff --git a/src/Views/post-edit.phtml b/src/Views/post-edit.phtml index 4dbed190..6f3c1ee9 100644 --- a/src/Views/post-edit.phtml +++ b/src/Views/post-edit.phtml @@ -119,8 +119,6 @@
- -
diff --git a/src/Views/post-upload.phtml b/src/Views/post-upload.phtml index c33f9685..9eead716 100644 --- a/src/Views/post-upload.phtml +++ b/src/Views/post-upload.phtml @@ -114,8 +114,6 @@ Assets::addScript('../lib/tagit/jquery.tagit.js');
- - diff --git a/src/Views/tag-mass-tag.phtml b/src/Views/tag-mass-tag.phtml index ade0dd5a..3f6f959e 100644 --- a/src/Views/tag-mass-tag.phtml +++ b/src/Views/tag-mass-tag.phtml @@ -44,11 +44,6 @@ ? htmlspecialchars($this->context->massTagQuery) : '' ?>"/> - -
diff --git a/src/Views/tag-merge.phtml b/src/Views/tag-merge.phtml index 980bd822..04eb0b38 100644 --- a/src/Views/tag-merge.phtml +++ b/src/Views/tag-merge.phtml @@ -16,8 +16,6 @@
- - context) ?>
diff --git a/src/Views/tag-rename.phtml b/src/Views/tag-rename.phtml index ec7787e9..1d2e6712 100644 --- a/src/Views/tag-rename.phtml +++ b/src/Views/tag-rename.phtml @@ -16,8 +16,6 @@
- - context) ?>
diff --git a/src/Views/user-delete.phtml b/src/Views/user-delete.phtml index 01b01ec9..bd755520 100644 --- a/src/Views/user-delete.phtml +++ b/src/Views/user-delete.phtml @@ -16,8 +16,6 @@
- - context) ?>
diff --git a/src/Views/user-edit.phtml b/src/Views/user-edit.phtml index e4d6751e..a613e366 100644 --- a/src/Views/user-edit.phtml +++ b/src/Views/user-edit.phtml @@ -106,8 +106,6 @@
- - context) ?>
diff --git a/src/Views/user-registration.phtml b/src/Views/user-registration.phtml index 9a6dc542..3a39e802 100644 --- a/src/Views/user-registration.phtml +++ b/src/Views/user-registration.phtml @@ -74,8 +74,6 @@ Assets::setSubTitle('registration form'); context) ?> - -
diff --git a/src/Views/user-select.phtml b/src/Views/user-select.phtml index f840dc9f..1ad7c546 100644 --- a/src/Views/user-select.phtml +++ b/src/Views/user-select.phtml @@ -17,8 +17,6 @@
- - context) ?>
diff --git a/src/Views/user-settings.phtml b/src/Views/user-settings.phtml index 1e4155bd..affc01b0 100644 --- a/src/Views/user-settings.phtml +++ b/src/Views/user-settings.phtml @@ -87,8 +87,6 @@
- - context) ?>