Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add image paths

  • Loading branch information...
commit b3fd4b81ce640c70b4a058accfd4d1fda02e239e 1 parent 78d1ff7
@kflorence authored
Showing with 26 additions and 3 deletions.
  1. +26 −3 src/jquery.tabulate.js
View
29 src/jquery.tabulate.js
@@ -296,7 +296,30 @@
* @default "src/themes/default"
* @type String
*/
- theme: "src/themes/default"
+ theme: "src/themes/default",
+
+ /**
+ * Contains the paths to images, relative to the current theme.
+ *
+ * @namespace The paths to images needed by tabulate.
+ */
+ images: {
+ /**
+ * The "previous" image.
+ *
+ * @type String
+ * @default "images/prev.png"
+ */
+ previous: "images/prev.png",
+
+ /**
+ * The "next" image.
+ *
+ * @type String
+ * @default "images/next.png"
+ */
+ next: "images/next.png"
+ }
},
/**
@@ -735,7 +758,7 @@
// navigation: previous
if (this.$elements.previous.length) {
this.$elements.previous.attr({
- src: this.paths.theme + "/images/prev.gif",
+ src: [this.paths.theme, this.paths.images.previous].join("/"),
alt: "Previous Page",
title: "Previous Page"
}).click(function() {
@@ -746,7 +769,7 @@
// navigation: next
if (this.$elements.next.length) {
this.$elements.next.attr({
- src: this.paths.theme + "/images/next.gif",
+ src: [this.paths.theme, this.paths.images.next].join("/"),
alt: "Next Page",
title: "Next Page"
}).click(function() {
Please sign in to comment.
Something went wrong with that request. Please try again.