Author: ekoneil
Date: Fri Feb 25 11:00:49 2005
New Revision: 155361
URL: http://svn.apache.org/viewcvs?view=rev&rev=155361
Log:
Fix for:
BEEHIVE-354 netui-datagrid.js file doesn't decode filter URI components
Also adding a license to ByRef.
BB: self
DRT: NetUI pass
Modified:
incubator/beehive/trunk/netui/src/javascript/tags-datagrid/netui-datagrid.js
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/ByRef.java
Modified:
incubator/beehive/trunk/netui/src/javascript/tags-datagrid/netui-datagrid.js
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/javascript/tags-datagrid/netui-datagrid.js?view=diff&r1=155360&r2=155361
==============================================================================
---
incubator/beehive/trunk/netui/src/javascript/tags-datagrid/netui-datagrid.js
(original)
+++
incubator/beehive/trunk/netui/src/javascript/tags-datagrid/netui-datagrid.js
Fri Feb 25 11:00:49 2005
@@ -162,11 +162,12 @@
}
function NetUIFilterList_parse(value) {
- var scIndex = value.indexOf(';');
- var dataGridName = value.substring(0, scIndex);
+ var decodedValue = decodeURIComponent(value);
+ var scIndex = decodedValue.indexOf(';');
+ var dataGridName = decodedValue.substring(0, scIndex);
var filter = new NetUIFilterList(dataGridName);
- var filterArray = value.substring(scIndex+1).split(',');
+ var filterArray = decodedValue.substring(scIndex+1).split(',');
for(var i = 0; i < filterArray.length; i++) {
var parts = filterArray[i].split('~');
filter.addFilter(parts[0],parts[1],parts[2]);
Modified:
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/ByRef.java
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/ByRef.java?view=diff&r1=155360&r2=155361
==============================================================================
---
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/ByRef.java
(original)
+++
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/ByRef.java
Fri Feb 25 11:00:49 2005
@@ -1,3 +1,20 @@
+/*
+ * Copyright 2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * $Header:$
+ */
package org.apache.beehive.netui.tags;
public class ByRef