Permalink
Browse files

Version 1.0

  • Loading branch information...
1 parent 992dc66 commit 9011541c6591593ef0766fdb8752b9b7f6602b34 @gaerae committed Jul 28, 2016
Showing with 24 additions and 17 deletions.
  1. +9 −1 README.md
  2. +5 −6 chrome/js/content.js
  3. +0 −4 chrome/js/jquery-3.0.0.min.js
  4. +4 −0 chrome/js/jquery-3.1.0.min.js
  5. +4 −4 chrome/js/jquery-ui.min.js
  6. +2 −2 chrome/manifest.json
View
@@ -1,5 +1,9 @@
# JIRA Subtask Sortable
-[![Chrome Web Store](https://img.shields.io/badge/Chrome%20Web%20Store-v0.3-orange.svg)](https://chrome.google.com/webstore/detail/hcidkmckdnbkbjghgcgeikdoljdhlimb)
+[![Chrome Web Store](https://img.shields.io/chrome-web-store/v/hcidkmckdnbkbjghgcgeikdoljdhlimb.svg?maxAge=2592000)](https://chrome.google.com/webstore/detail/hcidkmckdnbkbjghgcgeikdoljdhlimb)
+[![Chrome Web Store](https://img.shields.io/chrome-web-store/d/hcidkmckdnbkbjghgcgeikdoljdhlimb.svg?maxAge=2592000)](https://chrome.google.com/webstore/detail/hcidkmckdnbkbjghgcgeikdoljdhlimb)
+[![Chrome Web Store](https://img.shields.io/chrome-web-store/price/hcidkmckdnbkbjghgcgeikdoljdhlimb.svg?maxAge=2592000)](https://chrome.google.com/webstore/detail/hcidkmckdnbkbjghgcgeikdoljdhlimb)
+[![Chrome Web Store](https://img.shields.io/chrome-web-store/rating/hcidkmckdnbkbjghgcgeikdoljdhlimb.svg?maxAge=2592000)](https://chrome.google.com/webstore/detail/hcidkmckdnbkbjghgcgeikdoljdhlimb)
+[![Chrome Web Store](https://img.shields.io/chrome-web-store/rating-count/hcidkmckdnbkbjghgcgeikdoljdhlimb.svg?maxAge=2592000)](https://chrome.google.com/webstore/detail/hcidkmckdnbkbjghgcgeikdoljdhlimb)
지라 서브 테스크를 드래그&드롭으로 정렬 순서를 변경할 수 있습니다.
@@ -20,3 +24,7 @@ For support please create an issue here at GitHub
## Pull Requests
Feel free to submit any Pull Requests here.
Please indent using two spaces only, have a newline at the EOF and use UNIX line ending, thanks!
+
+## Screenshot
+![JIRA Subtask Sortable](./other/capture1280x800.png)
+
View
@@ -1,7 +1,6 @@
(function () {
'use strict';
- var app;
- app = {
+ var app = {
oldTableRows: {},
newTableRows: {},
/**
@@ -23,14 +22,15 @@
$('#issuetable>tbody').sortable({
placeholder: 'ui-state-highlight',
opacity: 0.65,
+ cursor: '-webkit-grabbing',
start: function() {
app.oldTableRows = app.getTableRows();
},
stop: function(event, ui) {
app.newTableRows = app.getTableRows();
- for (var i = 0; i <= app.newTableRows.length; i++) {
- if (ui.item[0].id == app.oldTableRows[i]) var oldRowId = i;
- if (ui.item[0].id == app.newTableRows[i]) var newRowId = i;
+ for (var tempRowId = 0; tempRowId <= app.newTableRows.length; tempRowId++) {
+ if (ui.item[0].id == app.oldTableRows[tempRowId]) var oldRowId = tempRowId;
+ if (ui.item[0].id == app.newTableRows[tempRowId]) var newRowId = tempRowId;
}
// Reorder for current page
@@ -52,7 +52,6 @@
$.get('/secure/MoveIssueLink.jspa?id='+$('#key-val').attr('rel')+'&currentSubTaskSequence='+oldRowId+'&subTaskSequence='+newRowId);
}
});
- $('#issuetable>tbody').disableSelection();
},
/**
* @description Initialize background page
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
@@ -3,11 +3,11 @@
"default_locale": "en",
"name": "__MSG_appName__",
"description": "__MSG_appDesc__",
- "version": "0.3",
+ "version": "1.0",
"permissions": ["declarativeContent", "activeTab", "http://*/browse/*", "https://*/browse/*"],
"content_scripts": [{
"all_frames": false,
- "js": ["js/jquery-3.0.0.min.js", "js/jquery-ui.min.js"],
+ "js": ["js/jquery-3.1.0.min.js", "js/jquery-ui.min.js"],
"matches": ["http://*/browse/*", "https://*/browse/*"],
"run_at": "document_end"
}],

0 comments on commit 9011541

Please sign in to comment.