move query-string-passing to JS rather than embedding in the HTML, so that the HTML can be commonised and cached better
This commit is contained in:
@ -95,9 +95,10 @@ and of course start organising your images :-)
|
||||
}
|
||||
|
||||
protected function build_table($images, $query) {
|
||||
$table = "<div class='shm-image-list'>";
|
||||
$h_query = html_escape($query);
|
||||
$table = "<div class='shm-image-list' data-query='$h_query'>";
|
||||
foreach($images as $image) {
|
||||
$table .= $this->build_thumb_html($image, $query);
|
||||
$table .= $this->build_thumb_html($image);
|
||||
}
|
||||
$table .= "</div>";
|
||||
return $table;
|
||||
|
Reference in New Issue
Block a user