Last active
February 5, 2016 15:28
-
-
Save garethellis36/8476008d033d3d980539 to your computer and use it in GitHub Desktop.
Triboni bookmarklet
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
javascript: | |
var amountBK = prompt('Enter amount',''); | |
void(document.getElementById('amount').value = amountBK); | |
void(document.getElementById('title').value = 'costs_description'); | |
void(document.getElementById('office').value = '123'); | |
void(document.getElementById('department').value = '12345'); | |
void(document.getElementById('account').value = '1234567'); | |
if (amountBK > 0) { | |
var blurEvent = new Event('blur'); | |
void(document.getElementById('amount').dispatchEvent(blurEvent)); | |
void(document.getElementById('approver').value = 'approver-code'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment