|
|
@@ -39,13 +39,6 @@
|
|
|
<script>
|
|
|
var $table = $('#table');
|
|
|
$(function() {
|
|
|
- $(document).on('focus', 'input[type="text"]', function() {
|
|
|
- $(this).parent().find('label').addClass('active');
|
|
|
- }).on('blur', 'input[type="text"]', function() {
|
|
|
- if ($(this).val() == '') {
|
|
|
- $(this).parent().find('label').removeClass('active');
|
|
|
- }
|
|
|
- });
|
|
|
// bootstrap table初始化
|
|
|
$table.bootstrapTable({
|
|
|
url: '${basePath}/manage/organization/list',
|
|
|
@@ -90,7 +83,10 @@ function createAction() {
|
|
|
createDialog = $.dialog({
|
|
|
animationSpeed: 300,
|
|
|
title: '新增组织',
|
|
|
- content: 'url:${basePath}/manage/organization/create'
|
|
|
+ content: 'url:${basePath}/manage/organization/create',
|
|
|
+ onContentReady: function () {
|
|
|
+ initMaterialInput();
|
|
|
+ }
|
|
|
});
|
|
|
}
|
|
|
// 编辑
|
|
|
@@ -114,7 +110,10 @@ function updateAction() {
|
|
|
updateDialog = $.dialog({
|
|
|
animationSpeed: 300,
|
|
|
title: '编辑组织',
|
|
|
- content: 'url:${basePath}/manage/organization/update/' + rows[0].organizationId
|
|
|
+ content: 'url:${basePath}/manage/organization/update/' + rows[0].organizationId,
|
|
|
+ onContentReady: function () {
|
|
|
+ initMaterialInput();
|
|
|
+ }
|
|
|
});
|
|
|
}
|
|
|
}
|