diff --git a/public/assets/js/bootstrap-table-commonsearch.js b/public/assets/js/bootstrap-table-commonsearch.js index 7036c40e..5711bd28 100644 --- a/public/assets/js/bootstrap-table-commonsearch.js +++ b/public/assets/js/bootstrap-table-commonsearch.js @@ -51,7 +51,7 @@ return Template(that.options.searchFormTemplate, {columns: pColumns, table: that}); } var htmlForm = []; - htmlForm.push(sprintf('
', that.options.actionForm)); + htmlForm.push(sprintf('', that.options.searchFormCss.form, that.options.actionForm)); htmlForm.push('
'); if (that.options.titleForm.length > 0) htmlForm.push(sprintf("%s", that.options.titleForm)); @@ -66,9 +66,9 @@ vObjCol.operate = that.options.renderDefault && operate ? operate : (typeof vObjCol.operate === 'undefined' ? '=' : vObjCol.operate); ColumnsForSearch.push(vObjCol); - htmlForm.push('
'); - htmlForm.push(sprintf('', vObjCol.field, vObjCol.title)); - htmlForm.push('
'); + htmlForm.push(sprintf('
', that.options.searchFormCss.form_group)); + htmlForm.push(sprintf('', vObjCol.field, that.options.searchFormCss.label, vObjCol.title)); + htmlForm.push(sprintf('
', that.options.searchFormCss.container)); vObjCol.operate = vObjCol.operate ? vObjCol.operate.toUpperCase() : '='; htmlForm.push(sprintf('', vObjCol.field, vObjCol.field, vObjCol.operate)); @@ -132,7 +132,8 @@ htmlForm.push('
'); } } - htmlForm.push('
'); + htmlForm.push(sprintf('
', that.options.searchFormCss.form_group)); + htmlForm.push(sprintf('', that.options.searchFormCss.label_btn)); htmlForm.push(createFormBtn(that).join('')); htmlForm.push('
'); htmlForm.push('
'); @@ -146,7 +147,7 @@ var htmlBtn = []; var searchSubmit = that.options.formatCommonSubmitButton(); var searchReset = that.options.formatCommonResetButton(); - htmlBtn.push('
'); + htmlBtn.push(sprintf('
', that.options.searchFormCss.container)); htmlBtn.push(sprintf(' ', searchSubmit)); htmlBtn.push(sprintf(' ', searchReset)); htmlBtn.push('
'); @@ -297,7 +298,7 @@ var that = this, html = []; - if(that.options.showSearch){ + if (that.options.showSearch) { html.push(sprintf('
', this.options.buttonsAlign, this.options.buttonsAlign)); html.push(sprintf('