My favorites
▼
|
Sign in
jmesa
Table Rendering API
Project Home
Downloads
Wiki
Issues
Source
Export to GitHub
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
64
attachment: droplistFilter2-patch.txt
(1.2 KB)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Index: C:/work/jmesa/resources/jmesa.js
===================================================================
--- C:/work/jmesa/resources/jmesa.js (revision 1286)
+++ C:/work/jmesa/resources/jmesa.js (working copy)
@@ -338,12 +338,11 @@
/* Get the original value from the filter. */
var originalValue = cell.text();
- cell.text('')
var width = cell.width();
/* Create the dynamic select input box. */
- html = '<div id="dynFilterDiv"><select id="dynFilterInput" name="filter">';
+ html = '<div id="dynFilterDiv" style="top:16px"><select id="dynFilterInput" name="filter" size="10">';
html += '<option value=""> </option>';
$.each(options, function(key, value) {
if (key == originalValue) {
@@ -374,6 +373,9 @@
div.width(width);
div.css( {visibility:"visible"} )
}
+
+ var originalBackgroundColor = cell.css("backgroundColor");
+ cell.css({backgroundColor:div.css("backgroundColor")});
input.focus();
@@ -391,6 +393,7 @@
cell.text(changedValue);
addFilterToLimit(dynFilter.id, dynFilter.property, changedValue);
$('#dynFilterDiv').remove();
+ cell.css({backgroundColor:originalBackgroundColor});
});
}
Powered by
Google Project Hosting