|
@@ -1155,7 +1155,12 @@ function loading(e, data, type)
|
|
|
$.getJSON(data.url + '&json=1', data, function(s) {
|
|
|
t = s.data;
|
|
|
if (typeof(t) == 'object') {
|
|
|
-
|
|
|
+ var r = t.remove;
|
|
|
+ if (r) {
|
|
|
+ for(var i in r) {
|
|
|
+ $(r[i]).remove();
|
|
|
+ }
|
|
|
+ }
|
|
|
var o = t.option;
|
|
|
if (o) {
|
|
|
for (var i in o) {
|
|
@@ -2482,6 +2487,13 @@ function showAlert(msg, func, title, index, t)
|
|
|
layer.close(index);
|
|
|
};
|
|
|
|
|
|
+ if (msg.indexOf('保存成功') != -1) {
|
|
|
+ config.end = function(index)
|
|
|
+ {
|
|
|
+ layer.closeAll();
|
|
|
+ };
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
if (func) {
|
|
|
config.yes = function(index)
|
|
@@ -3625,8 +3637,9 @@ function append(self, id)
|
|
|
total += append_total;
|
|
|
html = html.replaceAll('_-1_', '_' + total + '_');
|
|
|
html = html.replaceAll('up_', 'update_');
|
|
|
- id = 'update_' + id + '_c_' + total;
|
|
|
- parent.append('<tr id="'+id+'">' + html + '</tr>');
|
|
|
+ var class_name = 'update_' + id;
|
|
|
+ id = class_name + '_c_' + total;
|
|
|
+ parent.append('<tr id="'+id+'" class="'+class_name+'">' + html + '</tr>');
|
|
|
form.render();
|
|
|
|
|
|
$('#' + id + " select").each(function()
|