From b9835f519a75e05ecda52c526afdda06703849d3 Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Mon, 17 Jun 2013 00:20:18 +0200 Subject: [PATCH] #19801: Fixing invalid JS. Work Item: 19801 --HG-- branch : 1.x --- src/Orchard.Web/Modules/Orchard.Setup/Scripts/setup.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Orchard.Web/Modules/Orchard.Setup/Scripts/setup.js b/src/Orchard.Web/Modules/Orchard.Setup/Scripts/setup.js index 12f8786d6..5c34f3426 100644 --- a/src/Orchard.Web/Modules/Orchard.Setup/Scripts/setup.js +++ b/src/Orchard.Web/Modules/Orchard.Setup/Scripts/setup.js @@ -13,10 +13,12 @@ } })(); -$(document).ready(function ($) { - $("select.recipe").change(function () { // class="recipe" on the select element +(function($) { + $(document).ready(function() { + $("select.recipe").change(function() { // class="recipe" on the select element var description = $(this).find(":selected").attr("recipedescription"); // reads the html attribute of the selected option $("#recipedescription").text(description); // make the contents of
be the escaped description string }); - $(".data").find('input[name=DatabaseProvider]:checked').click(); + $(".data").find('input[name=DatabaseProvider]:checked').click(); + }); })(jQuery); \ No newline at end of file