From 8c42c2b06436772b010aa6088c90da6b911f4c58 Mon Sep 17 00:00:00 2001 From: Petr Bodnar Date: Thu, 11 May 2023 23:40:49 +0200 Subject: [PATCH] feat(jira-default-wl-type): be more careful with setting default wlType Also introduce more meaningful code ordering, plus some more cleanup. --- JIRA_def-worklog-type.user.js | 45 +++++++++++++++++++++++++---------- 1 file changed, 33 insertions(+), 12 deletions(-) diff --git a/JIRA_def-worklog-type.user.js b/JIRA_def-worklog-type.user.js index b4a3647..6ecfd36 100644 --- a/JIRA_def-worklog-type.user.js +++ b/JIRA_def-worklog-type.user.js @@ -3,12 +3,12 @@ // @namespace pbo // @description Changes default Worklog Type in JIRA with the Worklog express add-on. // @match https://your.jira.example.com/browse/* -// @version 1.1.0 +// @version 1.1.1 // @grant GM_registerMenuCommand // @require https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js // ==/UserScript== -(function($) { +(function ($) { /* Great users of this script can safely change values of the following constants: */ @@ -19,8 +19,10 @@ * 2. Find the