mirror of
https://github.com/ONLYOFFICE/onlyoffice.github.io.git
synced 2026-04-07 14:04:30 +08:00
Disabled input box and button in viewer mode
This commit is contained in:
@ -20,7 +20,6 @@
|
||||
var url = "";
|
||||
var player = null;
|
||||
var isWindowPlayer = false;
|
||||
var isViewerMode = false;
|
||||
|
||||
function getParam(url, param)
|
||||
{
|
||||
@ -75,6 +74,13 @@
|
||||
window.Asc.plugin.init = function(text)
|
||||
{
|
||||
var _textbox = document.getElementById("textbox_url");
|
||||
|
||||
// disable input and button elements in view mode
|
||||
if (this.info.isViewMode) {
|
||||
_textbox.disabled = true;
|
||||
document.getElementById("textbox_button").disabled = true;
|
||||
}
|
||||
|
||||
_textbox.onkeyup = function(e)
|
||||
{
|
||||
if (e.keyCode == 13) // click on Enter
|
||||
|
||||
Reference in New Issue
Block a user