You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by gc...@apache.org on 2022/08/09 00:52:47 UTC
[allura] 01/02: [#8452] updated .removeAttr -> .prop
This is an automated email from the ASF dual-hosted git repository.
gcruz pushed a commit to branch gc/8452
in repository https://gitbox.apache.org/repos/asf/allura.git
commit d8dbce3978e5c0d1a11dd3c168eac20772d58850
Author: Guillermo Cruz <gu...@slashdotmedia.com>
AuthorDate: Mon Aug 8 16:31:06 2022 -0600
[#8452] updated .removeAttr -> .prop
---
Allura/allura/templates/repo/log.html | 2 +-
ForgeShortUrl/forgeshorturl/templates/master.html | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Allura/allura/templates/repo/log.html b/Allura/allura/templates/repo/log.html
index 42c1864ea..64d7a80fd 100644
--- a/Allura/allura/templates/repo/log.html
+++ b/Allura/allura/templates/repo/log.html
@@ -60,7 +60,7 @@
$(".revision").click(function(){
if ( $("input:checked").length > 2){
$("tr.selected").toggleClass("selected", false);
- $("input.selected").removeAttr("checked");
+ $("input.selected").prop("checked", false);
$("input.selected").toggleClass("selected", false);
}
$(this).closest("tr").toggleClass("selected");
diff --git a/ForgeShortUrl/forgeshorturl/templates/master.html b/ForgeShortUrl/forgeshorturl/templates/master.html
index d67e9d4ad..0e8fa4fbc 100644
--- a/ForgeShortUrl/forgeshorturl/templates/master.html
+++ b/ForgeShortUrl/forgeshorturl/templates/master.html
@@ -32,10 +32,10 @@
modal.find('#short-url-form-title').show();
modal.find('#short-url-form-action-label').text('Add');
modal.find('input[name="update"]').val('False');
- modal.find('input[name="short_url"]').val('').removeAttr('readonly').trigger('keyup');
+ modal.find('input[name="short_url"]').val('').prop('readonly', false).trigger('keyup');
modal.find('input[name="full_url"]').val('');
modal.find('textarea[name="description"]').val('');
- modal.find('input[name="private"]').removeAttr('checked');
+ modal.find('input[name="private"]').prop('checked', false);
});
});
</script>