mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-24 06:01:36 +01:00
Etemplate - fix undefined error if historylog was not initialized (usually due to no record ID)
This commit is contained in:
parent
31b9c529b8
commit
566f853900
@ -111,10 +111,17 @@ var et2_historylog = (function(){ "use strict"; return et2_valueWidget.extend([e
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (typeof e.data.history.dataview == "undefined") e.data.history.finishInit();
|
if (typeof e.data.history.dataview == "undefined")
|
||||||
|
{
|
||||||
|
e.data.history.finishInit();
|
||||||
|
if(e.data.history.dynheight)
|
||||||
|
{
|
||||||
e.data.history.dynheight.update(function(_w, _h) {
|
e.data.history.dynheight.update(function(_w, _h) {
|
||||||
e.data.history.dataview.resize(_w, _h);
|
e.data.history.dataview.resize(_w, _h);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
tabs.tabData[i].flagDiv.bind("click.history",{"history": this, div: tabs.tabData[i].flagDiv}, handler);
|
tabs.tabData[i].flagDiv.bind("click.history",{"history": this, div: tabs.tabData[i].flagDiv}, handler);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user