[Mobile] Disable edit button while document loading

This commit is contained in:
Julia Radzhabova 2018-05-03 11:38:37 +03:00
parent 2facabf94f
commit 5735b3579e
6 changed files with 6 additions and 6 deletions

View file

@ -163,7 +163,7 @@ define([
},
activateControls: function() {
$('#toolbar-edit, #toolbar-add, #toolbar-settings, #toolbar-search, #document-back').removeClass('disabled');
$('#toolbar-edit, #toolbar-add, #toolbar-settings, #toolbar-search, #document-back, #toolbar-edit-document').removeClass('disabled');
},
activateViewControls: function() {

View file

@ -93,7 +93,7 @@ define([
}));
$('.view-main .navbar').on('addClass removeClass', _.bind(me.onDisplayMainNavbar, me));
$('#toolbar-edit, #toolbar-add, #toolbar-settings, #toolbar-search, #document-back').addClass('disabled');
$('#toolbar-edit, #toolbar-add, #toolbar-settings, #toolbar-search, #document-back, #toolbar-edit-document').addClass('disabled');
return me;
},

View file

@ -174,7 +174,7 @@ define([
},
activateControls: function() {
$('#toolbar-preview, #toolbar-settings, #toolbar-search, #document-back').removeClass('disabled');
$('#toolbar-preview, #toolbar-settings, #toolbar-search, #document-back, #toolbar-edit-document').removeClass('disabled');
},
activateViewControls: function() {

View file

@ -94,7 +94,7 @@ define([
}));
$('.view-main .navbar').on('addClass removeClass', _.bind(me.onDisplayMainNavbar, me));
$('#toolbar-preview, #toolbar-edit, #toolbar-add, #toolbar-settings, #toolbar-search, #document-back').addClass('disabled');
$('#toolbar-preview, #toolbar-edit, #toolbar-add, #toolbar-settings, #toolbar-search, #document-back, #toolbar-edit-document').addClass('disabled');
return me;
},

View file

@ -197,7 +197,7 @@ define([
},
activateControls: function() {
$('#toolbar-settings, #toolbar-search, #document-back').removeClass('disabled');
$('#toolbar-settings, #toolbar-search, #document-back, #toolbar-edit-document').removeClass('disabled');
},
activateViewControls: function() {

View file

@ -83,7 +83,7 @@ define([
}));
$('.view-main .navbar').on('addClass removeClass', _.bind(me.onDisplayMainNavbar, me));
$('#toolbar-edit, #toolbar-add, #toolbar-settings, #toolbar-search, #document-back').addClass('disabled');
$('#toolbar-edit, #toolbar-add, #toolbar-settings, #toolbar-search, #document-back, #toolbar-edit-document').addClass('disabled');
this.$btnEdit = $el.find('#toolbar-edit');
this.$btnAdd = $el.find('#toolbar-add');