Created
March 9, 2017 17:18
-
-
Save mrueegg/a7f03f5da942d266d5d40ed8c4c0d280 to your computer and use it in GitHub Desktop.
JavaScript module for Bitbucket Server to resolve open tasks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define('plugin/stash', [ | |
'jquery', | |
'stash/api/util/state', | |
'plugin/openTaskResolver', | |
'exports' | |
], function ($, state, openTaskResolver, exports) { | |
'use strict'; | |
function bindTasksResolveButton() { | |
$('.resolve-open-tasks').mousedown(function (e) { | |
openTaskResolver.resolveTasks(state); | |
}); | |
} | |
exports.onReady = function () { | |
bindTasksResolveButton(); | |
}; | |
} | |
); | |
AJS.$(function () { | |
require('plugin/stash').onReady(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment