Skip to content
Snippets Groups Projects
Commit 57d4a028 authored by Ere Maijala's avatar Ere Maijala
Browse files

Minor code style fixes.

parent 22656630
No related merge requests found
...@@ -43,7 +43,7 @@ VuFind.lightbox = (function() { ...@@ -43,7 +43,7 @@ VuFind.lightbox = (function() {
return; return;
} }
// Deframe HTML // Deframe HTML
if(html.match('<!DOCTYPE html>')) { if (html.match('<!DOCTYPE html>')) {
html = htmlDiv.find('.main > .container').html(); html = htmlDiv.find('.main > .container').html();
} }
// Fill HTML // Fill HTML
...@@ -57,7 +57,7 @@ VuFind.lightbox = (function() { ...@@ -57,7 +57,7 @@ VuFind.lightbox = (function() {
_modalBody.find('[type=submit]').click(_storeClickedStatus); _modalBody.find('[type=submit]').click(_storeClickedStatus);
var forms = _modalBody.find('form:not([data-lightbox-ignore])'); var forms = _modalBody.find('form:not([data-lightbox-ignore])');
for(var i=0;i<forms.length;i++) { for (var i=0;i<forms.length;i++) {
$(forms[i]).on('submit', _formSubmit); $(forms[i]).on('submit', _formSubmit);
} }
// Select all checkboxes // Select all checkboxes
...@@ -191,7 +191,7 @@ VuFind.lightbox = (function() { ...@@ -191,7 +191,7 @@ VuFind.lightbox = (function() {
// Special handlers // Special handlers
if ('undefined' !== typeof dataset) { if ('undefined' !== typeof dataset) {
// On submit behavior // On submit behavior
if("string" === typeof dataset.lightboxOnsubmit) { if ('string' === typeof dataset.lightboxOnsubmit) {
var ret = null; var ret = null;
if ("function" === typeof window[dataset.lightboxOnsubmit]) { if ("function" === typeof window[dataset.lightboxOnsubmit]) {
ret = window[dataset.lightboxOnsubmit](event, data); ret = window[dataset.lightboxOnsubmit](event, data);
...@@ -205,7 +205,7 @@ VuFind.lightbox = (function() { ...@@ -205,7 +205,7 @@ VuFind.lightbox = (function() {
} }
} }
// onclose behavior // onclose behavior
if("string" === typeof dataset.lightboxOnclose) { if ('string' === typeof dataset.lightboxOnclose) {
if ("function" === typeof window[dataset.lightboxOnclose]) { if ("function" === typeof window[dataset.lightboxOnclose]) {
document.addEventListener('VuFind.lightbox.closed', function() { document.addEventListener('VuFind.lightbox.closed', function() {
window[dataset.lightboxOnclose](); window[dataset.lightboxOnclose]();
......
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