Commit 3d3488b4 authored by Irina's avatar Irina

v1.1

parent 003080fc
......@@ -20,7 +20,7 @@ Any questions or comments are welcome! You can write me an e-mail on <a href="ma
Source code and issue reporting is available at GitHub: <a href="https://github.com/iriiiina/JIRA-Issue-Opener">https://github.com/iriiiina/JIRA-Issue-Opener</a>
<h1>Screenshots</h1>
<img border="0" src="http://4.bp.blogspot.com/-wOo3g1ZqmrI/VBLcx6DyiNI/AAAAAAAALVs/5IIZmNS2Tsk/s1600/extension.jpg" />&nbsp;
<img border="0" src="http://3.bp.blogspot.com/-lXr4C8njBBs/VBmYrnVGTDI/AAAAAAAALXk/k4UpCRoBFBY/s1600/extension.jpg" />&nbsp;
<img border="0" src="http://4.bp.blogspot.com/-Wb3ckR69dJE/VBLcx2KA7uI/AAAAAAAALVw/sgnMzDi3FWA/s1600/options.jpg" height = "190px"/>
<h1>Description</h1>
......@@ -28,7 +28,12 @@ Basically extension simply adds your issue key to specified URL and opens it in
<code>URL/browse/KEY</code>
Where <code>URL</code> is parameter, that user should specify in Options page (only one time after installation) and <code>KEY</code> is issue key that user inserts into extension field.
<code>KEY</code> is case insensitive. One space in the beginning and all spaces in the end will be trimmed.
<b>Features</b>
<ul>
<li><code>KEY</code> is case insensitive</li>
<li>All spaces in the beginning and in the end will be trimmed</li>
<li>Skype formatting will be trimmed: <code>[16.09.2014 13:34:34] Irina Ivanova: KEY-776</code> will be recognized as <code>KEY-776</code></li></ul>
<h1>Chrome Tip</h1>
You can configure hot keys for extension in the Google Chrome:
......@@ -41,5 +46,6 @@ Now You can use it completely without a mouse!
<h1>Posts About JIRA Issue Opener</h1>
<table><tbody>
<tr><td><em>September 17, 2014</em></td><td><a href="http://ivanova-irina.blogspot.com/2014/09/jira-issue-opener-v11.html">JIRA Issue Opener v1.1</a></td></tr>
<tr><td><em>September 12, 2014</em></td><td><a href="http://ivanova-irina.blogspot.com/2014/09/jira-issue-opener-v10.html">JIRA Issue Opener v1.0</a></td></tr>
</tbody></table>
body {
min-width: 200px;
min-width: 230px;
overflow-x: hidden;
background-color: #205081;
font-family: Arial, sans-serif;
......
......@@ -22,12 +22,13 @@ Tartu, Estonia -->
</div>
<div id='keyInput'>
<label for='key'>Key:&nbsp;</label>
<input type='text' name='key' id='key' maxlength='100' size='17' autofocus />
<input type='text' name='key' id='key' maxlength='100' size='22' autofocus />
<p class='description'>Insert issue key</p>
<p class='description'>Spaces and Skype formatting will be trimmed</p>
<p class='description'>JIRA issue will be opened in new tab</p>
</div>
<div id='info'>
<p>iriiiina@gmail.com v1.0</p>
<p>iriiiina@gmail.com v1.1</p>
</div>
</body>
......
......@@ -40,7 +40,9 @@ function removeSpaces(string) {
'use strict';
if (string.charAt(0) === ' ') {
string = string.slice(1, string.length);
//string = string.slice(1, string.length);
var temp = string.split(' ');
string = temp[temp.length - 1];
}
if (string.charAt(string.length - 1) === ' ') {
......@@ -50,6 +52,17 @@ function removeSpaces(string) {
return string;
}
function removeSkypeFormatting(string) {
'use strict';
if (string.charAt(0) === '[') {
var temp = string.split(' ');
string = temp[temp.length - 1];
}
return string;
}
function openWindow() {
'use strict';
......@@ -67,6 +80,7 @@ function openIssue() {
key = document.getElementById('key').value;
setUrl(urlOption);
key = removeSpaces(key);
key = removeSkypeFormatting(key);
if (key === '') {
isError = 1;
......
{
"name": "JIRA Issue Opener",
"short_name": "JIRA Issue Opener",
"version": "1.0",
"version": "1.1",
"manifest_version": 2,
"description": "Extension opens JIRA issue in new tab",
"homepage_url": "http://ivanova-irina.blogspot.com/p/jira-issue-opener.html",
......
screenshots/extension.jpg

10.4 KB | W: | H:

screenshots/extension.jpg

13.6 KB | W: | H:

screenshots/extension.jpg
screenshots/extension.jpg
screenshots/extension.jpg
screenshots/extension.jpg
  • 2-up
  • Swipe
  • Onion skin
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment