[Mobile] Disable edit button while document loading
This commit is contained in:
parent
2facabf94f
commit
5735b3579e
|
@ -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() {
|
||||
|
|
|
@ -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;
|
||||
},
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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;
|
||||
},
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue