diff --git a/customize.dist/main.js b/customize.dist/main.js index 3e9eab3b5..d9220a8d7 100644 --- a/customize.dist/main.js +++ b/customize.dist/main.js @@ -106,9 +106,17 @@ define([ }); }); + var readOnly = false; + if (pad.href.indexOf('#') !== -1) { + var modeArray = pad.href.split('#')[1].split('/'); + if (modeArray.length >= 3 && modeArray[2] === 'view') { + readOnly = true; + } + } + var readOnlyText = readOnly ? '(' + Messages.readonly + ') ' : ''; $row .append($('