Commit 3646cffc authored by Smari McCarthy's avatar Smari McCarthy
Browse files

Target id=articles

parent fad835b2
......@@ -25,7 +25,7 @@ function Marka(target) {
} else {
this.target = target;
}
// lightbox
var lightbox = '<div id="marka-currency-lightbox"><div><h2>Select a currency:</h2><div><select id="marka-currency-select">'
var currencies = this.currencies_supported()
......@@ -46,11 +46,11 @@ 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()
......@@ -271,7 +271,7 @@ Marka.prototype.currencies_supported = function(){
delete currencies[key];
currencies[key] = value;
});
return currencies;
}
......@@ -288,7 +288,7 @@ Marka.prototype.getCookie = function (cname) {
}
var the_marka;
$(function() { the_marka = new Marka(document.getElementById('test')); });
$(function() { the_marka = new Marka(document.getElementById('articles')); });
Marka.prototype.setCookie = function (cname, cvalue, exdays) {
var d = new Date();
......
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