Created
October 12, 2017 12:24
-
-
Save samuelkordik/bebfd642896fd85cc259c95ab0418c9d to your computer and use it in GitHub Desktop.
Bookmarklets
This file contains hidden or 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:(function()%20{window.frames.contentFrame.contentDocument.querySelector(%22%23solution%22).value%20=%20%22Duplicate%20EHR%20records%20have%20been%20removed.%20If%20the%20call%20has%20not%20been%20imported%20from%20CAD%2C%20it%20will%20remain%20in%20that%20import%20list%20for%20several%20days%20before%20automatically%20disappearing.%22;window.frames.contentFrame.contentDocument.querySelector(%22%23status%22).innerHTML%20=%20%27%3Coption%20value=%223%22%20selected=%22%22%3EClosed%3C/option%3E%27;window.frames.contentFrame.contentDocument.querySelector(%22%23status%22).onchange();var%20liElements%20=%20window.frames.contentFrame.contentDocument.querySelectorAll(%27%23td_34_status%20ul.newList%20li%27);for%20(var%20i%20=%200;%20i%20%3C%20liElements.length;%20i%2B%2B)%20{array[i].classList.remove(%27selected%27%2C%27hiLite%27);}window.frames.contentFrame.contentDocument.querySelector(%27%23td_34_status%20li.option_3_option%27).classList.add(%27selected%27%2C%20%27hiLite%27);window.frames.contentFrame.contentDocument.querySelector(%27%23td_34_status%20.opened%27).classList.remove(%27opened%27);window.frames.contentFrame.contentDocument.querySelector(%27%23td_34_status%20.containerContentDiv%27).style.display%20=%20%27none%27;window.frames.contentFrame.contentDocument.querySelector(%22%23solution%22).onchange();})(); | |
// Marks helpdesk ticket as duplicate. Not 100% tested. | |
(function() { | |
window.frames.contentFrame.contentDocument.querySelector("#solution").value = "Duplicate EHR records have been removed. If the call has not been imported from CAD, it will remain in that import list for several days before automatically disappearing."; | |
window.frames.contentFrame.contentDocument.querySelector("#status").innerHTML = '<option value="3" selected="">Closed</option>'; | |
window.frames.contentFrame.contentDocument.querySelector("#status").onchange(); | |
var liElements = window.frames.contentFrame.contentDocument.querySelectorAll('#td_34_status ul.newList li'); | |
for (var i = 0; i < liElements.length; i++) { | |
array[i].classList.remove('selected','hiLite'); | |
} | |
window.frames.contentFrame.contentDocument.querySelector('#td_34_status li.option_3_option').classList.add('selected', 'hiLite'); | |
window.frames.contentFrame.contentDocument.querySelector('#td_34_status .opened').classList.remove('opened'); | |
window.frames.contentFrame.contentDocument.querySelector('#td_34_status .containerContentDiv').style.display = 'none'; | |
window.frames.contentFrame.contentDocument.querySelector("#solution").onchange(); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment