diff --git a/css/base.css b/css/base.css index 333dd5c..38ef03d 100644 --- a/css/base.css +++ b/css/base.css @@ -5,6 +5,9 @@ body, html { background:#ffffff; } +.lightgrey { + opacity: .6; +} #wrap { } #menu { diff --git a/index.php b/index.php index 1570661..7d9f41c 100644 --- a/index.php +++ b/index.php @@ -196,9 +196,17 @@ function displayExportIcon(zone) { return $img; } -function displayContent(fieldName) { +function displayContent(fieldName, zone) { return function(data) { - return $('').text(data.record[fieldName]); + if (typeof(zone) != 'undefined') { + var rexp = new RegExp("(.*)"+zone); + var label = rexp.exec(data.record[fieldName]); + var lspan = $('').text(label[1]); + var zspan = $('').text(zone); + return lspan.add(zspan); + } else { + return $('').text(data.record[fieldName]); + } } } @@ -545,7 +553,7 @@ $(document).ready(function () { title: 'Label', width: '7%', create: true, - display: displayContent('name'), + display: displayContent('name', zone.record.name), inputClass: 'name', listClass: 'name' },