getListContentForData function added to lists helper.
It allows to manually set a list of entities which is to be displayed on the view. Previously, the only function was getListContent, but it retrived data on its own by a single query. The new function can be useful whenever it is impossible or very awkward to obtain entities in such a way (for example more sophisticated SQL statements).
Additionally, the getListContent function is reconstructed so that it collects the data first and then calls getListContentForData.
#!/bin/bash
#Requires java installed
echo "JSLINT: running jslint"
JS_DIRECTORY="../app/soc/content/js"
JSLINT="../thirdparty/jslint/jslint.js"
RHINO="../thirdparty/shrinksafe/js.jar"
for dir in $(find $JS_DIRECTORY -type d); do
for i in $(find $dir/*.js -type f); do
echo "JSLINT: Processing $i"
java -jar $RHINO $JSLINT $i
done
done
echo "JSLINT: process finished"