fatalwall / SCCD-Tools

Google Chrome Extension to add features to make managing SCCD Change Records easier
MIT License
0 stars 0 forks source link

Quick Add Attachment button #7

Closed fatalwall closed 6 years ago

fatalwall commented 6 years ago

Current method requires multiple clicks to select to add an attachment.

fatalwall commented 6 years ago

To accomplish this the following will be needed. Icon used below should be replace with one that is more intuitive

Add to the td mxae29c804_1 for service request Add to the td mxc7e08a4a_1 for Change, Incident, Problem

<div aria-live="polite" class="bc">
    <a href="Javascript: topLevelMenus['shared'].menuClick({'image':'menu_icon_addnewfile.gif','id':'addnewfile','text':'Add New File','value':'addnewfile','target':'sr_mainrec_menus','event':'click'});" title="Add New File" clicked="true">
        <img src="../webclient/skins-20170317-2238/tivoli13/images/menu_icon_addnewattachments.gif" alt="Add New File">
    </a>
</div>

call this after topLevelMenu

var inputFile = document.getElementById("file");
inputFile.setAttribute("accept", "text");
fatalwall commented 6 years ago

new functionality deploying in 0.5.5