add ent[1] - the data modification timestamp, to beforePortalReRender
alsoi include the previous timestamp for #324
This commit is contained in:
parent
94eeb5a728
commit
3d7440b06a
@ -588,8 +588,8 @@ window.renderPortal = function(ent) {
|
|||||||
if(!changing_highlighters && old) {
|
if(!changing_highlighters && old) {
|
||||||
var oo = old.options;
|
var oo = old.options;
|
||||||
|
|
||||||
// if the data we have is older than the data already rendered, do nothing
|
// if the data we have is older than/the same as the data already rendered, do nothing
|
||||||
if (oo.ent[1] > ent[1])
|
if (oo.ent[1] >= ent[1])
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Default checks to see if a portal needs to be re-rendered
|
// Default checks to see if a portal needs to be re-rendered
|
||||||
@ -597,7 +597,7 @@ window.renderPortal = function(ent) {
|
|||||||
u = u || oo.level !== portalLevel;
|
u = u || oo.level !== portalLevel;
|
||||||
|
|
||||||
// Allow plugins to add additional conditions as to when a portal gets re-rendered
|
// Allow plugins to add additional conditions as to when a portal gets re-rendered
|
||||||
var hookData = {portal: ent[2], oldPortal: oo.details, portalGuid: ent[0], reRender: false};
|
var hookData = {portal: ent[2], oldPortal: oo.details, portalGuid: ent[0], mtime: ent[1], oldMtime: oo.ent[1], reRender: false};
|
||||||
runHooks('beforePortalReRender', hookData);
|
runHooks('beforePortalReRender', hookData);
|
||||||
u = u || hookData.reRender;
|
u = u || hookData.reRender;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user