Skip to content

Commit

Permalink
[#2835] Updated loadFixture() to use Client#getTemplate()
Browse files Browse the repository at this point in the history
  • Loading branch information
aron committed Aug 13, 2012
1 parent 70c3d22 commit e53417f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ckan/public/base/test/index.html
Expand Up @@ -103,7 +103,6 @@
*
*/
function loadFixture(filename, params, callback) {
var URL = 'http://localhost:5000/api/1/util/snippet/' + encodeURIComponent(filename);
var context = this;

// Allow function to be called without params.
Expand All @@ -112,7 +111,7 @@
params = {};
}

return jQuery.get(URL, params).error(function () {
return (new ckan.Client()).getTemplate(filename, params).error(function () {
throw new Error('Unable to load fixture: ' + filename);
}).pipe(function (template) {
var fixture = jQuery('#fixture').html(template);
Expand Down

0 comments on commit e53417f

Please sign in to comment.