Skip to content

Commit 09cdd00

Browse files
petervostefwalter
authored andcommitted
shell: Fix auth dialog for new patterns
Closes cockpit-project#4308 Reviewed-by: Stef Walter <[email protected]>
1 parent 4841ab2 commit 09cdd00

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

pkg/shell/credentials.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -308,21 +308,21 @@ define([
308308
$("#credentials-dialog")
309309

310310
/* Show and hide panels */
311-
.on("click", "tr.listing-item, tr.listing-head", function(ev) {
311+
.on("click", "tr.listing-item", function(ev) {
312312
var body, open;
313313
if ($(ev.target).parents(".listing-actions, ul").length === 0) {
314-
body = $(this).parents("tbody");
314+
body = $(ev.target).parents("tbody");
315315
body.toggleClass("open").removeClass("unlock");
316316
body.find(".alert").hide();
317317
}
318318
})
319319

320320
/* Highlighting */
321-
.on("mouseenter", ".listing-head", function(ev) {
322-
$(ev.target).parents("tbody").find(".listing-head").addClass("highlight");
321+
.on("mouseenter", ".listing-item", function(ev) {
322+
$(ev.target).parents("tbody").find(".listing-item").addClass("highlight");
323323
})
324-
.on("mouseleave", ".listing-head", function(ev) {
325-
$(ev.target).parents("tbody").find(".listing-head").removeClass("highlight");
324+
.on("mouseleave", ".listing-item", function(ev) {
325+
$(ev.target).parents("tbody").find(".listing-item").removeClass("highlight");
326326
})
327327

328328
/* Load and unload keys */
@@ -417,7 +417,7 @@ define([
417417
})
418418

419419
/* Change tabs */
420-
.on("click", "tr.listing-head ul > li > a", function() {
420+
.on("click", "tr.credential-panel ul > li > a", function() {
421421
var li = $(this).parent();
422422
var index = li.index();
423423
li.parent().children().removeClass("active");

pkg/shell/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ <h4 class="modal-title" translatable="yes">Authentication</h4>
191191
</div>
192192
</td>
193193
</tr>
194-
<tr class="listing-head credential-panel">
194+
<tr class="listing-panel credential-panel">
195195
<td colspan="3">
196196
<ul class="nav nav-tabs nav-tabs-pf">
197197
<li class="active"><a href="#" translatable="yes">Details</a></li>

0 commit comments

Comments
 (0)