Commit a1a9dbce authored by Gabriel Monnerat's avatar Gabriel Monnerat

add feature to filter the listbox

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43243 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5a82f318
...@@ -75,6 +75,10 @@ ...@@ -75,6 +75,10 @@
<key> <string>container_layout</string> </key> <key> <string>container_layout</string> </key>
<value> <string>erp5_web_ung_mail_layout</string> </value> <value> <string>erp5_web_ung_mail_layout</string> </value>
</item> </item>
<item>
<key> <string>content_layout</string> </key>
<value> <string>erp5_web_ung_mail_content_layout</string> </value>
</item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <value>
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<key> <string>raw</string> </key> <key> <string>raw</string> </key>
<value> <string>function saveEmailThread(event){\n <value> <string>function saveEmailThread(event){\n
event.preventDefault();\n event.preventDefault();\n
formData = new Array();\n var formData = new Array();\n
$("div.compose-mail-page textarea, div.compose-mail-page input").each(function(){\n $("div.compose-mail-page textarea, div.compose-mail-page input").each(function(){\n
formData.push({name: $(this).attr("id"), value: $(this).attr("value")});\n formData.push({name: $(this).attr("id"), value: $(this).attr("value")});\n
});\n });\n
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
}\n }\n
\n \n
$().ready(function(){\n $().ready(function(){\n
var baseUrl = window.location.href.split("?")[0];\n
$("button#compose-mail").click(function(event){\n $("button#compose-mail").click(function(event){\n
event.preventDefault();\n event.preventDefault();\n
$("div.main-right fieldset.widget").hide();\n $("div.main-right fieldset.widget").hide();\n
...@@ -64,7 +65,15 @@ $().ready(function(){\n ...@@ -64,7 +65,15 @@ $().ready(function(){\n
});\n });\n
});\n });\n
$("img[alt=\'mail_logo_box\']").click(function(){\n $("img[alt=\'mail_logo_box\']").click(function(){\n
window.location.reload();\n window.location.href = baseUrl + "?reset:int=1";\n
});\n
$("input#submit-search").click(function(event){\n
event.preventDefault();\n
var text = $("input[name=\'searchable-text\']").attr("value").replace(/\\ /g,"%20");\n
window.location.href = baseUrl + "?SearchableText=" + text;\n
});\n
$("input[name=\'searchable-text\']").keypress(function(event){\n
(event.which == 13) ? $("input#submit-search").click() : null;\n
});\n });\n
});</string> </value> });</string> </value>
</item> </item>
......
244 245
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment