Commit 1da2bcd8 authored by Michał 'rysiek' Woźniak's avatar Michał 'rysiek' Woźniak
Browse files

more lightboxeness

parent d4b0b607
......@@ -127,4 +127,8 @@
border-radius:0.2em;
border:none;
box-shadow:inset 1px 1px 2px black;
}
#marka-currency-lightbox #marka-currency-select option[value=""] {
margin-bottom:1em
}
\ No newline at end of file
......@@ -33,7 +33,7 @@ function Marka(target) {
for (var cur in currencies) {
lightbox += '<option value="' + currencies[cur].code + '">' + currencies[cur].name_plural + ' (' + currencies[cur].code + ')</option>'
}
lightbox += '</select></div></div></div>'
lightbox += '</select></div><span></span></div></div>'
$(this.target).append($(lightbox))
var self = this
$('#marka-currency-select').change(
......@@ -42,6 +42,16 @@ function Marka(target) {
self.doConversions();
$('#marka-currency-lightbox').css('display', 'none')
})
$('#marka-currency-lightbox').click(function(){
$(this).css('display', 'none')
})
$('#marka-currency-lightbox > div > div').click(function(event){
event.preventDefault()
event.stopPropagation()
return false
})
this.match();
this.doConversions();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment