From 5843b5deafcb908c711e07f010f35bc061c519d8 Mon Sep 17 00:00:00 2001 From: starfighter83 Date: Wed, 3 Aug 2011 07:49:08 -0200 Subject: [PATCH] Adds confirmation before deleting prevalue Work Items: 30384 --- components/editorControls/KeyValuePrevalueEditor.cs | 2 +- components/editorControls/KeyValuePrevalueEditor.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/components/editorControls/KeyValuePrevalueEditor.cs b/components/editorControls/KeyValuePrevalueEditor.cs index ff79c487fb..56517d58e3 100644 --- a/components/editorControls/KeyValuePrevalueEditor.cs +++ b/components/editorControls/KeyValuePrevalueEditor.cs @@ -194,7 +194,7 @@ namespace umbraco.editorControls foreach (KeyValuePair item in _prevalues) { - writer.Write("" + item.Value + " " + item.Key.ToString() + "" + ui.Text("delete") + " sort"); + writer.Write("" + item.Value + " " + item.Key.ToString() + "" + ui.Text("delete") + " sort"); } writer.Write("
"); } diff --git a/components/editorControls/KeyValuePrevalueEditor.js b/components/editorControls/KeyValuePrevalueEditor.js index 9ed375208e..f0ec731114 100644 --- a/components/editorControls/KeyValuePrevalueEditor.js +++ b/components/editorControls/KeyValuePrevalueEditor.js @@ -35,3 +35,6 @@ function ResetValues() { jQuery(".valuesHiddenInput").val(val); } +function ConfirmPrevalueDelete() { + return confirm("Are you sure you want to delete"); +} \ No newline at end of file