Skip to content

Commit

Permalink
Publish button works when serverId is initially provided
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Curran committed May 18, 2018
1 parent c643736 commit 5d397c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rsconnect/static/connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ define([

function showSelectServerDialog(serverId) {
var dialogResult = $.Deferred();
var selectedEntryId = null;
var selectedEntryId = serverId;
// will be set during modal initialization
var btnPublish = null;

Expand All @@ -408,6 +408,7 @@ define([
.attr("type", "button")
.append($("<i></i>").addClass("fa fa-remove"))
.on("click", function(e) {
e.preventDefault();
e.stopPropagation();

const $a = $(this).closest("a");
Expand Down

0 comments on commit 5d397c5

Please sign in to comment.