text: define("jira/issuenavigator/issue-navigator",["jira/data/session-storage","jira/util/browser","jquery"],function(SessionStorage,Browser,jQuery){var IssueNavigator={isNavigator:function(){return jQuery("#isNavigator").length===1},setIssueUpdatedMsg:function(options){options=options||{};var issueMsg=options.issueMsg,issueId=options.issueId,issueKey=options.issueKey;if(!issueId){issueId=this.getSelectedIssueId();issueKey=this.getSelectedIssueKey()}if(issueId){SessionStorage.setItem("selectedIssueId",issueId)}if(issueKey){SessionStorage.setItem("selectedIssueKey",issueKey)}if(issueMsg){SessionStorage.setItem("selectedIssueMsg",issueMsg)}},reload:function(){Browser.reloadViaWindowLocation()},isRowSelected:function(){return IssueNavigator.get$focusedRow().length!==0},get$focusedRow:function(){return jQuery("#issuetable tr.issuerow.focused")},getFocsuedIssueIndex:function(){var rowIndex=jQuery("#issuetable").find("tr.issuerow").index(this.get$focusedRow());var searchOffset=parseInt(jQuery(".results-count-start").first().text(),10)-1;return rowIndex+searchOffset},getSelectedIssueKey:function(){var $focusedRow=IssueNavigator.get$focusedRow();if($focusedRow.length!==0){return $focusedRow.attr("data-issuekey")}return undefined},getSelectedIssueId:function(){return IssueNavigator.get$focusedRow().attr("rel")},getNextIssueId:function(){return IssueNavigator.get$focusedRow().next("tr.issuerow").attr("rel")}};return IssueNavigator});AJS.namespace("jira.app.issuenavigator",null,require("jira/issuenavigator/issue-navigator"));AJS.namespace("JIRA.IssueNavigator",null,require("jira/issuenavigator/issue-navigator"));