From d2008863b62c3729f7771bc05ec8619112334fdf Mon Sep 17 00:00:00 2001 From: Musachy Barroso Date: Sun, 10 Jun 2007 16:49:10 +0000 Subject: [PATCH] WW-1980 Ajax tags (most of them) are not working on IE 6 * IE doesn't like trailing commas in JSON git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@545909 13f79535-47bb-0310-9956-ffa450edef68 --- .../static/dojo/struts/widget/BindDiv.js | 3 +- .../static/dojo/struts/widget/StrutsTree.js | 2 +- .../dojo/struts/widget/StrutsTreeSelector.js | 3 +- .../src/main/resources/template/ajax/bind.ftl | 108 +++++++++++++----- .../src/main/resources/template/ajax/head.ftl | 16 +-- .../dojo/views/jsp/ui/HeadTagTest-1.txt | 2 +- .../dojo/views/jsp/ui/HeadTagTest-2.txt | 2 +- 7 files changed, 94 insertions(+), 42 deletions(-) diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts/widget/BindDiv.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts/widget/BindDiv.js index 6e778ea7f..ba9d11188 100644 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts/widget/BindDiv.js +++ b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts/widget/BindDiv.js @@ -412,5 +412,4 @@ dojo.widget.defineWidget( } return {"xml":s, "styles":styles, "titles":titles, "requires":requires, "scripts":scripts, "url":url}; } - } -); +}); diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts/widget/StrutsTree.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts/widget/StrutsTree.js index fa4a26330..32cff2afb 100644 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts/widget/StrutsTree.js +++ b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts/widget/StrutsTree.js @@ -53,7 +53,7 @@ dojo.widget.defineWidget( } }, mimetype: "text/json" - }); + }); } } }); \ No newline at end of file diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts/widget/StrutsTreeSelector.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts/widget/StrutsTreeSelector.js index 26f6c9c60..88655ad12 100644 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts/widget/StrutsTreeSelector.js +++ b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts/widget/StrutsTreeSelector.js @@ -94,6 +94,5 @@ dojo.widget.defineWidget( collapse: function(message) { var node = message.source; this.publishTopics(this.collapsedNotifyTopicsArray, {node: node}); - }, - + } }); \ No newline at end of file diff --git a/plugins/dojo/src/main/resources/template/ajax/bind.ftl b/plugins/dojo/src/main/resources/template/ajax/bind.ftl index 4d8382475..19c69f566 100644 --- a/plugins/dojo/src/main/resources/template/ajax/bind.ftl +++ b/plugins/dojo/src/main/resources/template/ajax/bind.ftl @@ -1,84 +1,138 @@ +<#assign firstField=true > diff --git a/plugins/dojo/src/test/resources/org/apache/struts2/dojo/views/jsp/ui/HeadTagTest-2.txt b/plugins/dojo/src/test/resources/org/apache/struts2/dojo/views/jsp/ui/HeadTagTest-2.txt index 1838fd93b..a551daff8 100644 --- a/plugins/dojo/src/test/resources/org/apache/struts2/dojo/views/jsp/ui/HeadTagTest-2.txt +++ b/plugins/dojo/src/test/resources/org/apache/struts2/dojo/views/jsp/ui/HeadTagTest-2.txt @@ -9,7 +9,7 @@ extraLocale: [ "a", "b", - "c", + "c" ] };