Browse code
Make sure the modal appears over other elements
Also, some debugging stuff.
Ed Langley authored on 07/03/2016 16:41:14Showing 2 changed files
... | ... |
@@ -15,7 +15,7 @@ |
15 | 15 |
var action = this.dataset.action; |
16 | 16 |
var modal = $('<div></div>'); |
17 | 17 |
var wrapper = $('<div class="myjQModal-wrapper"></div>').append(modal); |
18 |
- console.log(target); |
|
18 |
+ //console.log(target); |
|
19 | 19 |
modal.append(target); |
20 | 20 |
modal.wrap('<div class="myjQModal">'); |
21 | 21 |
$('body').append(wrapper); |
... | ... |
@@ -48,6 +48,7 @@ |
48 | 48 |
}; |
49 | 49 |
|
50 | 50 |
$(this).click(function() { |
51 |
+ console.log('this should happen'); |
|
51 | 52 |
if (action === 'open') { this.myjQModal.open(); } |
52 | 53 |
else if (action === 'close') { this.myjQModal.close(); } |
53 | 54 |
}); |
... | ... |
@@ -55,6 +56,7 @@ |
55 | 56 |
return this; |
56 | 57 |
}; |
57 | 58 |
$(document).ready(function() { |
59 |
+ console.log('boo'); |
|
58 | 60 |
$('button[data-type=modalTrigger]').myjQModal(); |
59 | 61 |
}); |
60 | 62 |
}( jQuery )); |