Pregunta

I've a script referenced in List's view like :

<JSLink>~/retrieveAlarm.js</JSLink>

The first lines of the script show up an syntax error:

$(document).ready(function() {
    ExecuteOrDelayUntilScriptLoaded(getAlarms, "sp.js");
)};

enter image description here

What I've made wrong ?

Thanks.

¿Fue útil?

Solución

It seems that you have to add jQuery reference also into the JSLINK.

Your path should be like

<JSLink>Path_To_jQuery|~/retrieveAlarm.js</JSLink>

Other than this, the syntax seems to be fine.

Licenciado bajo: CC-BY-SA con atribución
scroll top