|
@@ -293,6 +293,7 @@
|
|
|
}
|
|
|
|
|
|
$('select[name="appearance_id"]').change(function() {
|
|
|
+
|
|
|
if ($(this).val() == '') {
|
|
|
changeButtonDisabled(true);
|
|
|
}
|
|
@@ -301,20 +302,26 @@
|
|
|
});
|
|
|
|
|
|
editor.setValue('');
|
|
|
+
|
|
|
+ $('.main-card-body').html('');
|
|
|
|
|
|
postData();
|
|
|
});
|
|
|
+
|
|
|
$('input[name="dist_id"]').change(function() {
|
|
|
+
|
|
|
loadingIndex = layer.load(1, {
|
|
|
shade: [0.5, '#000']
|
|
|
});
|
|
|
|
|
|
editor.setValue('');
|
|
|
+
|
|
|
+ $('.main-card-body').html('');
|
|
|
dist_id = $(this).val();
|
|
|
|
|
|
|
|
|
setTimeout(function() {
|
|
|
- $("div[name='dist_id'] .option").text(dist_id+" - " + $("div[name='dist_id'] .option").text());
|
|
|
+ $("div[name='dist_id'] .option").prepend(dist_id+" - ");
|
|
|
}, 100);
|
|
|
|
|
|
|
|
@@ -327,9 +334,11 @@
|
|
|
dist_id: dist_id,
|
|
|
},
|
|
|
success: function(response) {
|
|
|
+
|
|
|
|
|
|
var $select = $('select[name="appearance_id"]');
|
|
|
$select.select2('val', response);
|
|
|
+
|
|
|
|
|
|
|
|
|
}
|