Fórum

Restrict js file

Shashi Kant, modificado 7 Anos atrás.

Restrict js file

New Member Postagens: 4 Data de Entrada: 23/09/16 Postagens Recentes
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, modificado 7 Anos atrás.

RE: Restrict js file

Regular Member Postagens: 177 Data de Entrada: 22/06/12 Postagens Recentes
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, modificado 7 Anos atrás.

RE: Restrict js file

New Member Postagens: 4 Data de Entrada: 23/09/16 Postagens Recentes
Thank you Nikhil.
Shashi Kant, modificado 7 Anos atrás.

RE: Restrict js file

New Member Postagens: 4 Data de Entrada: 23/09/16 Postagens Recentes
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,