Mercurial > hg > digilib
changeset 1190:d62806e28820
use region innerHtml text content for searching
author | hertzhaft |
---|---|
date | Wed, 12 Jun 2013 17:25:11 +0200 |
parents | 8436ae2fe1d8 |
children | bed5a2825db6 |
files | webapp/src/main/webapp/jquery/jquery.digilib.regions.js |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/webapp/src/main/webapp/jquery/jquery.digilib.regions.js Sun Apr 28 22:25:17 2013 +0200 +++ b/webapp/src/main/webapp/jquery/jquery.digilib.regions.js Wed Jun 12 17:25:11 2013 +0200 @@ -566,6 +566,9 @@ if (rect == null) return; // var coords = packCoords(rect, ','); var text = $region.data('text'); + if (text == null) { + text = $region.text(); + } if (RE == null || text.match(RE)) { var id = $region.attr('id'); var sortstring = $region.data('sort')