projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
toggleModal() now explicitly accepts an argument of 1 (on) or 0 (off)
[citadel.git]
/
webcit
/
static
/
modal.js
diff --git
a/webcit/static/modal.js
b/webcit/static/modal.js
index 45090b92c0cdfa3f3a3fbf81d40095272b3df30a..bd5de79603a410be1170662a92ad70ea61df111f 100644
(file)
--- a/
webcit/static/modal.js
+++ b/
webcit/static/modal.js
@@
-70,10
+70,13
@@
if ( isSafari ) {
var toggleModal = function (b) {
+
+ if (modalShowing && b) return;
+ if (!modalShowing && !b) return;
html.className=modalShowing?'':'modal';
- modalShowing =
b
;
+ modalShowing =
!modalShowing
;
if (modalShowing) {
dialog.focus();