* Fix for issue #3163, Calling the okbutton.click() on press of enter * Fix for issue #3163, using form and bind on submit. * Fix for issue #3163, submit using jQuery's submit method
This commit is contained in:
parent
1d8f8a69be
commit
7c0607b890
@ -1,4 +1,5 @@
|
||||
<div class="dialog-frame" style="width: 700px;">
|
||||
<form bind="form">
|
||||
<div class="dialog-border">
|
||||
<div class="dialog-header" bind="dialogHeader"></div>
|
||||
<div class="dialog-body" bind="dialogBody">
|
||||
@ -10,8 +11,9 @@
|
||||
</table></div>
|
||||
</div>
|
||||
<div class="dialog-footer" bind="dialogFooter">
|
||||
<button class="button" bind="okButton"> OK </button>
|
||||
<input type="submit" class="button" bind="okButton" value=" OK "/>
|
||||
<button class="button" bind="cancelButton">Cancel</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
@ -206,7 +206,8 @@ DataTableColumnHeaderUI.extendMenu(function(column, columnHeaderUI, menu) {
|
||||
var o = DataTableView.sampleVisibleRows(column);
|
||||
|
||||
elmts.cancelButton.click(dismiss);
|
||||
elmts.okButton.click(function() {
|
||||
elmts.form.submit(function(event) {
|
||||
event.preventDefault();
|
||||
var columnName = $.trim(elmts.columnNameInput[0].value);
|
||||
if (!columnName.length) {
|
||||
alert($.i18n('core-views/warning-col-name'));
|
||||
|
Loading…
Reference in New Issue
Block a user