projects
/
project/ctools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
55c04a2
)
Issue #1347578 by Dave Reid: Allow modal to have other close buttons inside the modal.
author
davereid
Fri, 20 Jan 2012 23:11:45 +0000 (15:11 -0800)
committer
Earl Miles
Fri, 20 Jan 2012 23:11:45 +0000 (15:11 -0800)
js/modal.js
patch
|
blob
|
blame
|
history
diff --git
a/js/modal.js
b/js/modal.js
index
6edf337
..
bfb845f
100644
(file)
--- a/
js/modal.js
+++ b/
js/modal.js
@@
-260,6
+260,15
@@
});
});
+
+ // Bind a click handler to allow elements with the 'ctools-close-modal'
+ // class to close the modal.
+ $('.ctools-close-modal', context).once('ctools-close-modal-processed', function () {
+ $(this).click(function() {
+ Drupal.CTools.Modal.dismiss();
+ return false;
+ });
+ });
}
};