Skip to content

Commit

Permalink
Made worksheetId an optional paramater
Browse files Browse the repository at this point in the history
  • Loading branch information
jlovison committed Jan 8, 2015
1 parent d5b7875 commit 5c8fc35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions angular-gcms.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ angular.module('jlovison.gcms', [])
};

// Define the spreadsheet getter function with promise return
var getSpreadsheet = function(sheetId, worksheetId, columnList) {
var getSpreadsheet = function(sheetId, columnList, worksheetId) {
var deferred = $q.defer();
// Load the data from the spreadsheet sheetId
var worksheetId = 'od6';
worksheetId = (typeof worksheetId === "undefined") ? "od6" : worksheetId;
$http({
method: 'GET',
url: 'https://spreadsheets.google.com/feeds/cells/' + sheetId + '/' + worksheetId + '/public/values?alt=json',
Expand Down

0 comments on commit 5c8fc35

Please sign in to comment.