remove attempt to bind deletetoken event to del key
This commit is contained in:
parent
c54cf56a7b
commit
e721e66e24
|
@ -55,7 +55,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr data-bind="if: $root.config.connectDialog.token">
|
<tr data-bind="if: $root.config.connectDialog.token">
|
||||||
<td></td>
|
<td></td>
|
||||||
<td><select id="token" multiple="multiple" height="5" data-bind="options:tokens, selectedOptions:selectedTokens, valueUpdate: 'afterkeydown', event: { keypress: $root.config.connectDialog.deleteSelectedTokensKey}"></select></td>
|
<td><select id="token" multiple="multiple" height="5" data-bind="options:tokens, selectedOptions:selectedTokens"></select></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr data-bind="if: $root.config.connectDialog.username">
|
<tr data-bind="if: $root.config.connectDialog.username">
|
||||||
<td>Username</td>
|
<td>Username</td>
|
||||||
|
|
|
@ -74,11 +74,6 @@ function ConnectDialog () {
|
||||||
self.tokenToAdd("")
|
self.tokenToAdd("")
|
||||||
}
|
}
|
||||||
|
|
||||||
self.removeSelectedTokensKey = function(data, event) {
|
|
||||||
if (event.keyCode == 46) {
|
|
||||||
self.removeSelectedTokens()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
self.removeSelectedTokens = function() {
|
self.removeSelectedTokens = function() {
|
||||||
this.tokens.removeAll(this.selectedTokens())
|
this.tokens.removeAll(this.selectedTokens())
|
||||||
this.selectedTokens([])
|
this.selectedTokens([])
|
||||||
|
|
Loading…
Reference in a new issue