Commit 16fd4630 authored by Benjamin Fischer's avatar Benjamin Fischer
Browse files

GalleryView: fixed syntax and typo

parent cc5d8f60
......@@ -86,7 +86,7 @@ define([
// only one path given -> create one item
self.items.push({
title: args.path.split("/").pop(),
src: return this.applyDefaultQuery(this.dynamicURL("/fs/getfile?path="+args.path)),
src: self.applyDefaultQuery(self.dynamicURL("/fs/getfile?path="+args.path)),
type: args.path.split(".").pop().toLowerCase() == "pdf" ? "iframe" : "img"
});
} else if (args.paths) {
......@@ -94,7 +94,7 @@ define([
$.each(args.paths, function (index, path) {
self.items.push({
title: path.split("/").pop(),
src: return this.applyDefaultQuery(this.dynamicURL("/fs/getfile?path="+path)),
src: self.applyDefaultQuery(self.dynamicURL("/fs/getfile?path="+path)),
type: path.split(".").pop().toLowerCase() == "pdf" ? "iframe" : "img"
});
});
......
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