Skip to content
Snippets Groups Projects
Commit 7f5516ff authored by Demian Katz's avatar Demian Katz
Browse files

Simple jslint fixes.

parent 01f71b78
No related merge requests found
......@@ -53,6 +53,11 @@ VuFind.register('cart', function Cart() {
return full;
}
function hasItem(id, _source) {
var source = _source || VuFind.defaultSearchBackend;
return _getItems().indexOf(String.fromCharCode(65 + _getSources().indexOf(source)) + id) > -1;
}
function _refreshToggles() {
var $toggleBtns = $('.btn-bookbag-toggle');
if ($toggleBtns.length > 0) {
......@@ -79,10 +84,6 @@ VuFind.register('cart', function Cart() {
_refreshToggles();
}
function hasItem(id, _source) {
var source = _source || VuFind.defaultSearchBackend;
return _getItems().indexOf(String.fromCharCode(65 + _getSources().indexOf(source)) + id) > -1;
}
function addItem(id, _source) {
var source = _source || VuFind.defaultSearchBackend;
var cartItems = _getItems();
......
......@@ -29,9 +29,9 @@ function channelAddLinkButtons(elem) {
for (var i = 0; i < links.length; i++) {
$cont.append(
$('<a/> ', {
href: links[i].url,
class: links[i].label + " btn btn-default",
html: '<i class="fa ' + links[i].icon + '"></i> ' + VuFind.translate(links[i].label)
'href': links[i].url,
'class': links[i].label + " btn btn-default",
'html': '<i class="fa ' + links[i].icon + '"></i> ' + VuFind.translate(links[i].label)
})
);
}
......
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