mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-14 09:58:16 +01:00
Only try to unbind if there's a value. If there isn't a value (new entry), handler wasn't bound, and trying causes an error.
Fixes blank popup after save.
This commit is contained in:
parent
e94b62bd5e
commit
51d802ec78
@ -173,8 +173,11 @@ var et2_historylog = et2_valueWidget.extend([et2_IDataProvider],
|
|||||||
* Destroys all
|
* Destroys all
|
||||||
*/
|
*/
|
||||||
destroy: function() {
|
destroy: function() {
|
||||||
// Unbind
|
// Unbind, if bound
|
||||||
$j(window).off('.' +this.options.value.app + this.options.value.id);
|
if(this.options.value && !this.options.value.id)
|
||||||
|
{
|
||||||
|
$j(window).off('.' +this.options.value.app + this.options.value.id);
|
||||||
|
}
|
||||||
|
|
||||||
// Free the widgets
|
// Free the widgets
|
||||||
for(var i = 0; i < this.columns.length; i++)
|
for(var i = 0; i < this.columns.length; i++)
|
||||||
|
Loading…
Reference in New Issue
Block a user