addStandardServiceOnEnter (#2914)
This commit is contained in:
parent
a0a889688b
commit
a0f2d11255
@ -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>
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user