mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
Fix icon select widget to be compatible with iTop 2.7
This commit is contained in:
@@ -281,8 +281,16 @@ $(function()
|
||||
},
|
||||
_on_upload_error: function(data, status, e)
|
||||
{
|
||||
alert(e);
|
||||
this.oUploadDlg.closest('.ui-dialog').find('.ui-button').button('enable');
|
||||
if(data.responseText.indexOf('login-body') !== false)
|
||||
{
|
||||
alert('Sorry, your session has expired. In order to continue, the whole page has to be loaded again.');
|
||||
this.oUploadDlg.dialog('close');
|
||||
}
|
||||
else
|
||||
{
|
||||
alert(e);
|
||||
this.oUploadDlg.closest('.ui-dialog').find('.ui-button').button('enable');
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user