留言板

Restrict js file

Shashi Kant,修改在7 年前。

Restrict js file

New Member 帖子: 4 加入日期: 16-9-23 最近的帖子
We are not able to restrict js file which is provided by Liferay open source code.
if we are appending with URL (html/js/aui/cookie/cookie.js),we are able to see cookie.js file . can we restrict this.?
thumbnail
Nikhil Nishchal,修改在7 年前。

RE: Restrict js file

Regular Member 帖子: 176 加入日期: 12-6-22 最近的帖子
You can customize it from portal-ext
javascript.everything.files=\
\
#
# YUI modules
#
\
aui/async-queue/async-queue.js,\
aui/base-build/base-build.js,\
aui/cookie/cookie.js,\
aui/event-touch/event-touch.js,\
aui/overlay/overlay.js,\
aui/querystring-stringify/querystring-stringify.js,\
aui/widget-child/widget-child.js,\
aui/widget-position-align/widget-position-align.js,\
aui/widget-position-constrain/widget-position-constrain.js,\
aui/widget-position/widget-position.js,\
aui/widget-stack/widget-stack.js,\
aui/widget-stdmod/widget-stdmod.js,\



But be careful if it may required by another JS.
Shashi Kant,修改在7 年前。

RE: Restrict js file

New Member 帖子: 4 加入日期: 16-9-23 最近的帖子
Thank you Nikhil.
Shashi Kant,修改在7 年前。

RE: Restrict js file

New Member 帖子: 4 加入日期: 16-9-23 最近的帖子
how to restrict js file content in the browser ? below code is enable the content of the js when hit the path of the .js file
javascript.everything.files=\
\
#
# YUI modules
#
\
aui/async-queue/async-queue.js,