Commit 7ef00654 authored by Michał 'rysiek' Woźniak's avatar Michał 'rysiek' Woźniak
Browse files

lightbox is lightboxy as hell

parent 1da2bcd8
......@@ -101,6 +101,7 @@
#marka-currency-lightbox > div {
min-width:10em;
max-width:50%;
text-align:center;
}
#marka-currency-lightbox > div > div {
......@@ -117,6 +118,18 @@
text-align:center;
}
#marka-currency-lightbox > div > span {
font-size:80%;
text-align:center;
font-style:italic;
color:#aaa;
color:#8C9566;
text-shadow:0px 0px 1px #34AE30;
white-space:nowrap;
display:inline-block;
margin-top:1em;
}
#marka-currency-lightbox #marka-currency-select {
padding:0.2em;
font-size:120%;
......
......@@ -31,9 +31,13 @@ function Marka(target) {
var currencies = this.currencies_supported()
lightbox += '<option value="">Show original currency</option>'
for (var cur in currencies) {
lightbox += '<option value="' + currencies[cur].code + '">' + currencies[cur].name_plural + ' (' + currencies[cur].code + ')</option>'
if (this.getCurrentCurrency() === currencies[cur].code) {
lightbox += '<option value="' + currencies[cur].code + '" selected>' + currencies[cur].name_plural + ' (' + currencies[cur].code + ')</option>'
} else {
lightbox += '<option value="' + currencies[cur].code + '">' + currencies[cur].name_plural + ' (' + currencies[cur].code + ')</option>'
}
}
lightbox += '</select></div><span></span></div></div>'
lightbox += '</select></div><span>or click anywhere to close</span></div></div>'
$(this.target).append($(lightbox))
var self = this
$('#marka-currency-select').change(
......
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