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
47
attachment: droplistFilter-v3-patch.txt
(2.0 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
37
38
39
40
41
42
43
44
Index: C:/work/jmesa/src/org/jmesa/view/html/editor/DroplistFilterEditor.java
===================================================================
--- C:/work/jmesa/src/org/jmesa/view/html/editor/DroplistFilterEditor.java (revision 1170)
+++ C:/work/jmesa/src/org/jmesa/view/html/editor/DroplistFilterEditor.java (working copy)
@@ -51,7 +51,7 @@
filterValue = filter.getValue();
}
- String name = "filterOptions";
+ String name = property + "FilterOptions";
StringBuilder javascript = new StringBuilder();
javascript.append("var ").append(name).append("={};");
Index: C:/work/jmesa/resources/jmesa.js
===================================================================
--- C:/work/jmesa/resources/jmesa.js (revision 1170)
+++ C:/work/jmesa/resources/jmesa.js (working copy)
@@ -346,7 +346,7 @@
html = '<div id="dynFilterDiv"><select id="dynFilterInput" name="filter" style="width:' + width + 'px">';
html += '<option value=""> </option>';
$.each(options, function(key, value) {
- if (this == originalValue) {
+ if (key == originalValue) {
html += '<option selected="selected" value="' + key + '">' + value + '</option>';
} else {
html += '<option value="' + key + '">' + value + '</option>';
@@ -361,7 +361,7 @@
/* Something was selected */
$('#dynFilterInput').change(function() {
- var changedValue = $("#dynFilterInput option:selected").text();
+ var changedValue = $("#dynFilterInput option:selected").val();
cell.text(changedValue);
addFilterToLimit(dynFilter.id, dynFilter.property, changedValue);
$('#dynFilterDiv').remove();
@@ -369,7 +369,7 @@
});
$('#dynFilterInput').blur(function() {
- var changedValue = $("#dynFilterInput option:selected").text();
+ var changedValue = $("#dynFilterInput option:selected").val();
cell.text(changedValue);
addFilterToLimit(dynFilter.id, dynFilter.property, changedValue);
$('#dynFilterDiv').remove();
Powered by
Google Project Hosting