check if wificollecctor war running before it is removed from the dom
This commit is contained in:
parent
52a27eec3e
commit
eff4214121
1 changed files with 3 additions and 2 deletions
|
@ -135,11 +135,12 @@ editor = {
|
|||
editor._fixed_point_layer = null;
|
||||
}
|
||||
|
||||
$('#sidebar').addClass('loading').find('.content').html('');
|
||||
editor._cancel_editing();
|
||||
if (window.mobileclient && mobileclient.wificollectorStop && $('#sidebar').find('.wificollector.running').length) {
|
||||
mobileclient.wificollectorStop();
|
||||
}
|
||||
|
||||
$('#sidebar').addClass('loading').find('.content').html('');
|
||||
editor._cancel_editing();
|
||||
},
|
||||
_fill_level_control: function (level_control, level_list) {
|
||||
var levels = level_list.find('a');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue