[-] MO productcomments :

- Module was broken and works now
- A message is displayed to indicate when a comment has been added.
- Error li are correctly indented

#PNM-753
#PNM-1601
#PNM-1660
#PNM-1609
#PNM-1491
#PNM-1311
#PNM-1233
#PNM-1232
#PNM-937
#PNM-775
This commit is contained in:
Fabio Chelly
2013-09-06 17:54:12 +02:00
parent 1b0c5be93d
commit 9377775eca
4 changed files with 17 additions and 7 deletions
+1
View File
@@ -322,6 +322,7 @@ function fancyChooseBox(question, title, buttons, otherParams)
for (var caption in buttons) {
if (!buttons.hasOwnProperty(caption)) continue;
funcName = buttons[caption];
if (typeof otherParams == 'undefined') otherParams = 0;
otherParams = escape(JSON.stringify(otherParams));
action = funcName ? "$.fancybox.close();window['" + funcName + "'](JSON.parse(unescape('" + otherParams + "')), " + i + ")" : "$.fancybox.close()";
msg += '<input class="button" style="margin-right: 5px" type="button" value="' + caption + '" onclick="' + action + '" />';