[open-ils-commits] r18830 - branches/rel_2_0/Open-ILS/web/js/dojo/openils (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Nov 22 16:10:23 EST 2010
Author: miker
Date: 2010-11-22 16:10:18 -0500 (Mon, 22 Nov 2010)
New Revision: 18830
Modified:
branches/rel_2_0/Open-ILS/web/js/dojo/openils/BibTemplate.js
Log:
minor FeedTemplate bug fixes
Modified: branches/rel_2_0/Open-ILS/web/js/dojo/openils/BibTemplate.js
===================================================================
--- branches/rel_2_0/Open-ILS/web/js/dojo/openils/BibTemplate.js 2010-11-22 20:38:55 UTC (rev 18829)
+++ branches/rel_2_0/Open-ILS/web/js/dojo/openils/BibTemplate.js 2010-11-22 21:10:18 UTC (rev 18830)
@@ -230,6 +230,7 @@
this.feed_uri = kwargs.uri;
this.item_query = kwargs.query;
this.sync = kwargs.sync == true;
+ this.preventCache = kwargs.preventCache == true;
this.nodelay = kwargs.delay == false;
this.reverseSort = kwargs.reverseSort == true;
this.relativePosition = 'last';
@@ -244,7 +245,7 @@
dojo.query( me.item_query, xmldoc ).forEach(
function (item) {
var template = me.root.cloneNode(true);
- dojo.place( template, place, me.relativePosition );
+ dojo.place( template, me.place, me.relativePosition );
new openils.BibTemplate({ delay : false, xml : item, root : template });
}
);
@@ -254,10 +255,10 @@
process_feed(this.xml);
} else {
dojo.xhrGet({
- url: this.feed_uri,
+ url: me.feed_uri,
handleAs: 'xml',
- sync: this.sync,
- preventCache: true,
+ sync: me.sync,
+ preventCache: me.preventCache,
load: process_feed
});
}
More information about the open-ils-commits
mailing list