Permalink
Browse files

* Removed redundant JS code. Closes #57

  • Loading branch information...
1 parent a818aa9 commit b93caf8f0cbb4e61d14cad5458bfe6d5b359b271 @dkobia dkobia committed Jun 4, 2009
Showing with 0 additions and 8 deletions.
  1. +0 −8 application/views/reports_submit_js.php
View
8 application/views/reports_submit_js.php
@@ -129,14 +129,6 @@
});
});
-
- // Date Picker JS
- $("#incident_date").datepicker({
- showOn: "both",
- buttonImage: "<?php echo url::base() ?>media/img/admin/icon-calendar.gif",
- buttonImageOnly: true
- });
-
function addFormField(div, field, hidden_id, field_type) {
var id = document.getElementById(hidden_id).value;
$("#" + div).append("<div class=\"report_row\" id=\"" + field + "_" + id + "\"><input type=\"" + field_type + "\" name=\"" + field + "[]\" class=\"" + field_type + " long2\" /><a href=\"#\" class=\"add\" onClick=\"addFormField('" + div + "','" + field + "','" + hidden_id + "','" + field_type + "'); return false;\">add</a><a href=\"#\" class=\"rem\" onClick='removeFormField(\"#" + field + "_" + id + "\"); return false;'>remove</a></div>");

0 comments on commit b93caf8

Please sign in to comment.