diff options
author | kondou <kondou@ts.unde.re> | 2013-04-09 13:03:37 +0200 |
---|---|---|
committer | kondou <kondou@ts.unde.re> | 2013-04-09 13:07:28 +0200 |
commit | e44cc8ea578aea01bae337e17ef3f9458af41b2d (patch) | |
tree | 0de5b6058a7f0cfbf1ac993a28b3edc917afbae9 /core/js/oc-dialogs.js | |
parent | 9c53f35d9a85d7fd322c3e897821db00dc29675f (diff) | |
download | nextcloud-server-e44cc8ea578aea01bae337e17ef3f9458af41b2d.tar.gz nextcloud-server-e44cc8ea578aea01bae337e17ef3f9458af41b2d.zip |
Fix OC.dialogs.form()
Don't do _too_ much escapeHTML()
Diffstat (limited to 'core/js/oc-dialogs.js')
-rw-r--r-- | core/js/oc-dialogs.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js index a690938f383..990c3f8bf38 100644 --- a/core/js/oc-dialogs.js +++ b/core/js/oc-dialogs.js @@ -110,7 +110,7 @@ var OCdialogs = { var dialog_name = 'oc-dialog-' + OCdialogs.dialogs_counter + '-content'; var dialog_id = '#' + dialog_name; - var dialog_div = '<div id="' + dialog_name + '" title="' + escapeHTML(title) + '">' + escapeHTML(content) + '</div>'; + var dialog_div = '<div id="' + dialog_name + '" title="' + escapeHTML(title) + '">' + content + '</div>'; if (modal === undefined) { modal = false }; $('body').append(dialog_div); var buttonlist = [{ @@ -205,7 +205,7 @@ var OCdialogs = { message:function(content, title, dialog_type, buttons, callback, modal) { var dialog_name = 'oc-dialog-' + OCdialogs.dialogs_counter + '-content'; var dialog_id = '#' + dialog_name; - var dialog_div = '<div id="' + dialog_name + '" title="' + escapeHTML(title) + '">' + escapeHTML(content) + '</div>'; + var dialog_div = '<div id="' + dialog_name + '" title="' + escapeHTML(title) + '">' + content + '</div>'; if (modal === undefined) { modal = false }; $('body').append(dialog_div); var buttonlist = []; @@ -285,7 +285,7 @@ var OCdialogs = { if (callback !== undefined) { var valuelist = []; $(dialog_id + ' input, ' + dialog_id + ' select').each(function(index, element) { - valuelist[index] = { name: $(elem).attr('name'), value: OCdialogs.determineValue(elem) }; + valuelist[index] = { name: $(element).attr('name'), value: OCdialogs.determineValue(element) }; }); $(dialog_id).dialog('close'); callback(valuelist); |