Skip to content

Commit

Permalink
Issue atlassian-labs#305: revert version changes for slack common mod…
Browse files Browse the repository at this point in the history
…ule; prevent ambiguities in JS
  • Loading branch information
annapieper committed Dec 11, 2023
1 parent 511e769 commit fe8520d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bitbucket-slack-server-integration-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<atlassian-json-api.version>0.9</atlassian-json-api.version>
<atlassian-concurrent.version>3.0.0</atlassian-concurrent.version>
<commons-codec.version>1.11</commons-codec.version>
<slack.common.version>1.1.14</slack.common.version>
<slack.common.version>1.1.13</slack.common.version>

<!-- product properties -->
<plugin.key>${project.groupId}.${project.artifactId}</plugin.key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<groupId>com.atlassian.jira.plugins</groupId>
<artifactId>jira-slack-server-integration-plugin</artifactId>
<packaging>atlassian-plugin</packaging>
<version>3.0.11-SNAPSHOT</version>
<version>3.0.10-SNAPSHOT</version>

<name>Slack for Jira Data Center</name>
<description>This is the Slack plugin for Jira Data Center</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ require([
}

function isInIssueView() {
return $('#issue-content').length;
return $('#issue-content').length > 0;
}
function isSlackPanelVisible() {
return $("#slack-issue-panel").length;
return $("#slack-issue-panel").length > 0;
}
});
});
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
<webresource.version>3.5.39</webresource.version>
<atlassian-cache.version>3.2.0</atlassian-cache.version>

<slack.common.version>1.1.14</slack.common.version>
<slack.common.version>1.1.13</slack.common.version>
</properties>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require([
var flag = null;

$(function () {
// skip if user is already in configuration view or edit pages or in issue view without active slack integration
// skip if user is already in configuration view or edit pages or in issue view and slack panel isn't shown
if (contains(window.location.pathname, CONFIGURE_PAGE_URL)
|| contains(window.location.pathname, OAUTH_SESSIONS_PAGE_URL)
|| (isInIssueView() && !isSlackPanelVisible())) {
Expand Down Expand Up @@ -66,10 +66,10 @@ require([
}

function isInIssueView() {
return $('#issue-content').length;
return $('#issue-content').length > 0;
}
function isSlackPanelVisible() {
return $("#slack-issue-panel").length;
return $("#slack-issue-panel").length > 0;
}

function contains(str, substr) {
Expand Down

0 comments on commit fe8520d

Please sign in to comment.