Commit bbbd51ee authored by Gabriel Monnerat's avatar Gabriel Monnerat

Add function to insert html code on dialog of wdcalendar

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42881 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d7d6b050
...@@ -139,6 +139,22 @@ function wtd(p){\n ...@@ -139,6 +139,22 @@ function wtd(p){\n
$("#showdaybtn").addClass("fcurrent");\n $("#showdaybtn").addClass("fcurrent");\n
}\n }\n
\n \n
function createFieldToInsertOnDialog(){\n
return "<th class=\'cb-key\'>Event Type</th>" + \n
"<td class=\'cb-value\'><select name=\'portal_type\'>" +\n
"<option>Acknowledgement</option>" +\n
"<option>Fax Message</option>" + \n
"<option>Letter</option>" +\n
"<option>Mail Message</option>" +\n
"<option>Note</option>" + \n
"<option>Phone Call</option>" +\n
"<option>Short Message</option>" +\n
"<option>Site Message</option>" + \n
"<option>Visit</option>" +\n
"<option>Web Message</option>" +\n
"</select></td>"\n
}\n
\n
i18n.xgcalendar.content = "Title"\n i18n.xgcalendar.content = "Title"\n
i18n.xgcalendar.location = "Event Id"\n i18n.xgcalendar.location = "Event Id"\n
i18n.xgcalendar.participant = "Event Type"\n i18n.xgcalendar.participant = "Event Type"\n
...@@ -163,6 +179,7 @@ $(document).ready(function() { \n ...@@ -163,6 +179,7 @@ $(document).ready(function() { \n
quickAddUrl: DATA_FEED_URL + "?request_type=add",\n quickAddUrl: DATA_FEED_URL + "?request_type=add",\n
quickUpdateUrl: DATA_FEED_URL + "?request_type=update",\n quickUpdateUrl: DATA_FEED_URL + "?request_type=update",\n
quickDeleteUrl: DATA_FEED_URL + "?request_type=remove",\n quickDeleteUrl: DATA_FEED_URL + "?request_type=remove",\n
loadFieldOnDialog: createFieldToInsertOnDialog, \n
};\n };\n
var $dv = $("#calhead");\n var $dv = $("#calhead");\n
var _MH = document.documentElement.clientHeight;\n var _MH = document.documentElement.clientHeight;\n
......
208 209
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment