addStandardServiceOnEnter (#2914)

This commit is contained in:
Urvashi Gupta 2020-07-10 02:27:24 +05:30 committed by GitHub
parent a0a889688b
commit a0f2d11255
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -1,11 +1,13 @@
<div class="dialog-frame" style="width: 500px;">
<div class="dialog-header" bind="dialogHeader"></div>
<form bind="form">
<div class="dialog-body" bind="dialogBody">
<p><span bind="or_recon_enterUrl"></span></p>
<div class="input-container"><input value="http://" bind="input" /></div>
</div>
<div class="dialog-footer" bind="dialogFooter">
<button class="button" bind="addButton"></button>
<button class="button" bind="addButton" type="submit"></button>
<button class="button" bind="cancelButton"></button>
</div>
</form>
</div>

View File

@ -213,7 +213,7 @@ ReconDialog.prototype._onAddStandardService = function() {
};
elmts.cancelButton.click(dismiss);
elmts.addButton.click(function() {
elmts.form.submit(function() {
var url = $.trim(elmts.input[0].value);
if (url.length > 0) {
ReconciliationManager.registerStandardService(url, function(index) {