Skip to content

Commit

Permalink
Merge pull request #186 from newpanjing/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
newpanjing authored Nov 25, 2019
2 parents 778d642 + e7212c4 commit daffb9b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion simpleui/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
def get_version():
return '3.4'
return '3.5'
15 changes: 8 additions & 7 deletions simpleui/templates/admin/actions.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@
{% endblock %}

<el-button-group class="btn-group">
{% if cl.search_fields or cl.has_filters %}
<a href="javascript:;" @click="searchDisplay()" class="el-button el-button--default"><span
class="el-icon-search"></span></a>
{% endif %}
<a href="javascript:;" @click="reload()" class="el-button el-button--default"><span
class="el-icon-refresh"></span></a>
<a href="javascript:;" @click="openNewPage()" class="el-button el-button--default"><span
Expand Down Expand Up @@ -244,10 +246,10 @@
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => done());
}).then(() => done.call(this));

} else {
done();
done.call(this)
}

function done() {
Expand Down Expand Up @@ -291,11 +293,12 @@
}
}
}
console.log('执行了')
if (url) {
window.location.href = url;
return;
} else if ($(this).attr('data-name')) {
}

if ($(this).attr('data-name')) {
var name = $(this).attr("data-name");
$("#changelist-form input[name='action']").val(name);

Expand All @@ -307,10 +310,8 @@
obj.removeAttr('name');
}
});
$("#changelist-form").submit();
} else {
$("#changelist-form").submit();
}
$("#changelist-form").submit();
}
});
});
Expand Down

0 comments on commit daffb9b

Please sign in to comment.