Last active
December 27, 2015 02:59
-
-
Save tomgross/7256426 to your computer and use it in GitHub Desktop.
operationsmanager control
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
/* XXX Post to TFS */ | |
function follow_href(title) { | |
$('a[title="' + title + '"]').click(function() { | |
window.location = $(this).attr("href"); | |
}); | |
$('a[title="' + title + '"]').trigger('click'); | |
} | |
function get_text(selector) { | |
return $.trim($(selector).text()); | |
} | |
$.ajax({url: 'http://localhost:5000/api', | |
type: 'POST', | |
dataType: 'jsonp', | |
crossDomain: true, | |
data: {id: get_text('#ticketId > a'), | |
subject: get_text('#subject')}}).done(function () { | |
follow_href('Mitteilungen'); | |
follow_href('Notiz hinzufügen...');}); | |
/* XXX Actually add a note */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment