Permalink
Browse files

add image paths

  • Loading branch information...
1 parent 78d1ff7 commit b3fd4b81ce640c70b4a058accfd4d1fda02e239e @kflorence committed Sep 28, 2010
Showing with 26 additions and 3 deletions.
  1. +26 −3 src/jquery.tabulate.js
View
@@ -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() {

0 comments on commit b3fd4b8

Please sign in to comment.