allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [09/16] allura git commit: [#8230] Fix checklist.js for multiple elements
Date Mon, 15 Oct 2018 16:02:33 GMT
[#8230] Fix checklist.js for multiple elements


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/d8d575c6
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/d8d575c6
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/d8d575c6

Branch: refs/heads/master
Commit: d8d575c6b4d6887d96ebf3f5f7b38005786952c4
Parents: 6c1a6ee
Author: Shalitha Suranga <shalithasuranga@gmail.com>
Authored: Wed Oct 10 15:44:40 2018 +0530
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Mon Oct 15 15:50:29 2018 +0000

----------------------------------------------------------------------
 Allura/allura/public/nf/js/checklist.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/d8d575c6/Allura/allura/public/nf/js/checklist.js
----------------------------------------------------------------------
diff --git a/Allura/allura/public/nf/js/checklist.js b/Allura/allura/public/nf/js/checklist.js
index c1edac2..32642f7 100644
--- a/Allura/allura/public/nf/js/checklist.js
+++ b/Allura/allura/public/nf/js/checklist.js
@@ -32,7 +32,7 @@ var Checklists = (function($) {
     Checklists.prototype.checkboxSelector = "> li > input:checkbox";
     Checklists.prototype.onChange = function(ev, self) {
         var checkbox = $(this).prop("disabled", true);
-        var index = $("ul" + self.checkboxSelector, self.container).index(this);
+        var index = $("ul" + self.checkboxSelector, $(this).closest('.active-md')).index(this);
         var reactivate = function() { checkbox.prop("disabled", false); };
         self.retriever(checkbox, function(markdown) {
             markdown = self.toggleCheckbox(index, markdown);


Mime
View raw message