Commit ef65270e authored by Alexander Yuzhin's avatar Alexander Yuzhin

[DE mobile] Fix bug 33945

parent 0e769a52
......@@ -92,11 +92,11 @@ define([
me.api.asc_GetDefaultTableStyles();
}
$('#add-table li').single('click', _.buffered(this.onStyleClick, 300, this));
$('#add-table li').single('click', _.buffered(this.onStyleClick, 100, this));
},
onViewRender: function () {
$('#add-table li').single('click', _.buffered(this.onStyleClick, 300, this));
$('#add-table li').single('click', _.buffered(this.onStyleClick, 100, this));
},
onStyleClick: function (e) {
......@@ -104,9 +104,12 @@ define([
$target = $(e.currentTarget),
type = $target.data('type');
if ($('.modal.modal-in').length > 0) {
return
}
DE.getController('AddContainer').hideModal();
_.delay(function () {
if ($target) {
var picker;
var modal = uiApp.modal({
......@@ -161,7 +164,6 @@ define([
marginTop: - Math.round($$(modal).outerHeight() / 2) + 'px'
});
}
}, 300);
},
// Public
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment