Updated macro editor to support Partial view macros. Improves the JS in the editor (no more c# based js) which auto clears

other fields and drop downs when other files are selected.
This commit is contained in:
Shannon Deminick
2012-12-04 05:42:15 +05:00
parent 5b0057c258
commit e0a71830fa
4 changed files with 127 additions and 53 deletions

View File

@@ -11,9 +11,16 @@
//handles the change selection of the drop downs to populate the text box
(function($) {
$(document).ready(function () {
//on drop down change, update the text box and clear other text boxes
$("#Table2 td.propertyContent select").change(function() {
$(this).prev("input[type='text']").val($(this).val());
});
//update the txt box
var txt = $(this).prev("input[type='text']");
txt.val($(this).val());
//clear other text boxes
$("#Table2 td.propertyContent input[type='text']").not(txt).val("");
//reset other drop downs
$("#Table2 td.propertyContent select").not($(this)).val("");
});
});
})(jQuery);