From 4bb8ae06dd82476c2e0455630a2d77a56443150e Mon Sep 17 00:00:00 2001 From: Jessica Lord Date: Sun, 25 May 2014 19:10:08 +0200 Subject: [PATCH] table and maps updates somehow sheetsee cli wasn't building it correctly before... --- js/sheetsee.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/js/sheetsee.js b/js/sheetsee.js index 2186a4cb..5c62f568 100644 --- a/js/sheetsee.js +++ b/js/sheetsee.js @@ -1,5 +1,5 @@ ;(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o opts.pagination) writePreNext(opts.tableDiv, currentPage, currentPage, totalPages, data, opts.pagination) } @@ -25362,12 +25362,14 @@ function clearPreNext() { } module.exports.table = table -function table(data, targetDiv) { - var templateID = targetDiv.replace("#", "") +function table(data, opts) { + if (opts.templateID) { + var templateID = opts.templateID + } else var templateID = opts.targetDiv.replace("#", "") var tableContents = ich[templateID]({ rows: data }) - $(targetDiv).html(tableContents) + $(opts.tableDiv).html(tableContents) } },{"icanhaz":2}]},{},[1]) ; \ No newline at end of file