[open-ils-commits] r18827 - trunk/Open-ILS/web/js/dojo/openils (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Nov 22 15:34:03 EST 2010
Author: miker
Date: 2010-11-22 15:33:58 -0500 (Mon, 22 Nov 2010)
New Revision: 18827
Modified:
trunk/Open-ILS/web/js/dojo/openils/BibTemplate.js
Log:
minor FeedTemplate bug fixes
Modified: trunk/Open-ILS/web/js/dojo/openils/BibTemplate.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/BibTemplate.js 2010-11-22 17:17:59 UTC (rev 18826)
+++ trunk/Open-ILS/web/js/dojo/openils/BibTemplate.js 2010-11-22 20:33:58 UTC (rev 18827)
@@ -232,6 +232,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';
@@ -246,7 +247,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 });
}
);
@@ -256,10 +257,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