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:
Shish
2013-07-05 22:32:01 +01:00
parent e4bfa7df70
commit 47c1b5d094
9 changed files with 36 additions and 16 deletions

View File

@ -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;