Skip to content

Instantly share code, notes, and snippets.

View DiyahM's full-sized avatar

Hadiyah Mujhid DiyahM

View GitHub Profile
anonymous
anonymous / Send Mail.js
Created October 15, 2013 12:57
What does appendTags() do ? (i) Appends the Link Tag (Link to jQuery UI Stylesheet) to the Head tag of the Page. (ii) Appends a DIV Tag (that would form the jQuery Modal Dialog) to the Body tag of the Page. What does createPopupWindow() do ? Create a jQuery Modal Dialog with buttons 'Send Mail' and 'Cancel'. What does fetchEmailTemplates() do ? …
{!REQUIRESCRIPT('//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js')}
{!REQUIRESCRIPT('//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js')}
function appendTags(){
if(jQuery('[id=start-theme-css]').length==0){
jQuery('head').append(
'<link ' +
'id="start-theme-css"' +
'rel="stylesheet"' +
'href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/start/jquery-ui.min.css"' +