<div dir="ltr">Ok, yes it looks to me some interferences in the templates.<div><br></div><div>Ciao</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-05-04 16:15 GMT+02:00 Jesus <span dir="ltr"><<a href="mailto:gesusjl@gmail.com" target="_blank">gesusjl@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<br>
Hi Simone. <br>
<br>
As you say I need to figure out if there's any interfering template
or app causing the problem. in the meanwhile i remove the
{{CLIENT_RESULTS_LIMIT}} template tag from search_scripts.html in
"production server" and substitute with a numeric value. Not doing
so makes javascript break (not default value is provided) <br>
<br>
I will let you know if i find out the cause of the problem.<br>
<br>
Thanks!<br>
<br>
Jesús<br>
<br>
<div>On 05/04/2015 12:38 AM, Simone Dalmasso
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi Jesus, I cannot replicate this.
<div>The <span style="font-size:12.8000001907349px">CLIENT_RESULTS_LIMIT
is defined in the settings as you said but also is passed
from the context_processor to the client see <a href="https://github.com/GeoNode/geonode/blob/master/geonode/context_processors.py#L62" target="_blank">https://github.com/GeoNode/geonode/blob/master/geonode/context_processors.py#L62</a> that
defaults it to 10 if not found in settings. And is used
here <a href="https://github.com/GeoNode/geonode/blob/master/geonode/templates/search/search_scripts.html#L26" target="_blank">https://github.com/GeoNode/geonode/blob/master/geonode/templates/search/search_scripts.html#L26</a>.</span></div>
<div><span style="font-size:12.8000001907349px">All this is done
server side so it should not be a javascript error. Did you
by the way changed in the template? Seems that the server is
not interpreting the </span><span>{{
CLIENT_RESULTS_LIMIT }} </span><span style="font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap;background-color:rgb(255,255,255)"><font color="#000000" face="arial, helvetica, sans-serif"> and
this could be caused by the presence of a {% verbatim %}
block around it.</font></span></div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2015-05-03 20:21 GMT+02:00 Jesus <span dir="ltr"><<a href="mailto:gesusjl@gmail.com" target="_blank">gesusjl@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
Layers and maps not appear in geonode 2.4 dev.. firebug
console raise an javascript error<br>
<br>
SyntaxError: expected expression, got ';'<br>
<br>
CLIENT_RESULTS_LIMIT = ;<br>
<br>
<br>
I tried uploading local_settings.py with<br>
<br>
CLIENT_RESULTS_LIMIT = 100<br>
<br>
but no result. Maybe a javascript bug or something else to
check around?<br>
<br>
No apache errors<br>
<br>
Thank you,<br>
<br>
Jesús<br>
<br>
_______________________________________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users</a><br>
</blockquote>
</div>
<br>
<br clear="all"><span class="HOEnZb"><font color="#888888">
<div><br>
</div>
-- <br>
<div>Simone </div>
</font></span></div>
</blockquote>
<br>
</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Simone </div>
</div>