#19801: Fixing invalid JS.

Work Item: 19801

--HG--
branch : 1.x
This commit is contained in:
Sipke Schoorstra
2013-06-17 00:20:18 +02:00
parent 0d3325e338
commit b9835f519a

View File

@@ -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 <div id="recipe-description"></div> be the escaped description string
});
$(".data").find('input[name=DatabaseProvider]:checked').click();
$(".data").find('input[name=DatabaseProvider]:checked').click();
});
})(jQuery);