packages: eventum/eventum-order.patch - rediff
glen
glen at pld-linux.org
Mon Oct 12 21:12:53 CEST 2009
Author: glen Date: Mon Oct 12 19:12:53 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- rediff
---- Files affected:
packages/eventum:
eventum-order.patch (1.21 -> 1.22)
---- Diffs:
================================================================
Index: packages/eventum/eventum-order.patch
diff -u packages/eventum/eventum-order.patch:1.21 packages/eventum/eventum-order.patch:1.22
--- packages/eventum/eventum-order.patch:1.21 Thu Jul 23 13:05:36 2009
+++ packages/eventum/eventum-order.patch Mon Oct 12 21:12:47 2009
@@ -1,5 +1,5 @@
---- eventum-new/htdocs/ajax/order.php 2008-10-15 02:02:25.000000000 +0300
-+++ eventum-new/htdocs/ajax/order.php 2008-10-15 02:02:25.000000000 +0300
+--- eventum-2.2/htdocs/ajax/order.php 1970-01-01 02:00:00.000000000 +0200
++++ eventum-2.2-order/htdocs/ajax/order.php 2009-10-12 22:10:36.429185594 +0300
@@ -0,0 +1,72 @@
+<?
+require_once(dirname(__FILE__) . '/../init.php');
@@ -73,9 +73,9 @@
+ }
+ }
+}
---- eventum/htdocs/ajax/update.php 2008-10-15 01:46:20.000000000 +0300
-+++ eventum-new/htdocs/ajax/update.php 2008-10-15 02:02:25.000000000 +0300
-@@ -0,0 +1,30 @@
+--- eventum-2.2/htdocs/ajax/update.php 1970-01-01 02:00:00.000000000 +0200
++++ eventum-2.2-order/htdocs/ajax/update.php 2009-10-12 22:10:36.439185157 +0300
+@@ -0,0 +1,38 @@
+<?
+require_once(dirname(__FILE__) . '/../init.php');
+require_once(APP_INC_PATH . "class.auth.php");
@@ -94,9 +94,17 @@
+ case 'expected_resolution_date':
+ $day = (int)$_POST['day'];
+ $month = (int)$_POST['month'];
-+ $year = (int)$_POST['year'];
-+ if (Issue::updateField($_POST['issueID'], $_POST['fieldName'], sprintf('%04d-%02d-%02d', $year, $month, $day)) !== -1) {
-+ echo Date_Helper::getSimpleDate(sprintf('%04d-%02d-%02d', $year, $month, $day), false);
++ $year = (int)$_POST['year'];
++ if ($day == 0 && $month == 1 && $year == 0) {
++ // clear button
++ $date = null;
++ } else {
++ $date = sprintf('%04d-%02d-%02d', $year, $month, $day);
++ }
++ if (Issue::updateField($_POST['issueID'], $_POST['fieldName'], $date) !== -1) {
++ if (!is_null($date)) {
++ echo Date_Helper::getSimpleDate(sprintf('%04d-%02d-%02d', $year, $month, $day), false);
++ }
+ } else {
+ echo 'update failed';
+ }
@@ -106,800 +114,886 @@
+ die('object type not supported');
+ break;
+}
---- eventum/lib/eventum/class.display_column.php 2008-10-15 01:46:20.000000000 +0300
-+++ eventum-new/lib/eventum/class.display_column.php 2008-10-15 02:02:25.000000000 +0300
-@@ -229,7 +229,10 @@
- ),
- "iss_expected_resolution_date" => array(
- "title" => ev_gettext("Expected Resolution Date")
-- )
-+ ),
-+ "isu_order" => array(
-+ "title" => ev_gettext("Order")
-+ ),
- )
- );
- return $columns[$page];
---- eventum-2.2/lib/eventum/class.issue.php~ 2009-07-23 14:02:20.000000000 +0300
-+++ eventum-2.2/lib/eventum/class.issue.php 2009-07-23 14:02:38.085536073 +0300
-@@ -1356,6 +1356,7 @@
- Error_Handler::logError(array($res->getMessage(), $res->getDebugInfo()), __FILE__, __LINE__);
- return -1;
- } else {
-+ self::moveOrderForAllUsers($issue_id, 1000);
- $prj_id = self::getProjectID($issue_id);
-
- // record the change
-@@ -1659,6 +1660,176 @@
- }
- }
-
-+ /**
-+ * Method used to update the a single detail field of a specific issue.
-+ *
-+ * @param integer $issue_id
-+ * @param string $field_name
-+ * @param string $field_value
-+ * @param string $field_type string or integer (for escape)
-+ * @return integer 1 on success, -1 otherwise
-+ */
-+ function updateField($issue_id, $field_name, $filed_value) {
+--- eventum-2.2/htdocs/css/style.css 2009-09-14 18:07:55.000000000 +0300
++++ eventum-2.2-order/htdocs/css/style.css 2009-10-12 22:10:36.439185157 +0300
+@@ -172,4 +172,22 @@
+ font-size: 70%;
+ font-family: Verdana, Arial, Helvetica, sans-serif;
+ padding: 10px;
+-}
+\ No newline at end of file
++}
++.tDnD_whileDrag td {
++ background-color: #ffffdd;
++}
++.tDnD_whileDrag td {
++ border: 1px solid red;
++}
++.inline_date_pick {
++ cursor: pointer;
++}
++.custom_field {
++ cursor: pointer;
++}
++.showDragHandle {
++ cursor: move;
++ background-image: url(../images/updown2.gif);
++ background-repeat: no-repeat;
++ background-position: center center;
++}
+--- eventum-2.2/htdocs/js/global.js 2009-09-14 18:07:55.000000000 +0300
++++ eventum-2.2-order/htdocs/js/global.js 2009-10-12 22:10:36.439185157 +0300
+@@ -798,4 +798,44 @@
+ firstDay: user_prefs.week_firstday
+ });
+ });
+
-+ $issue_id = Misc::escapeInteger($issue_id);
++$(document).ready(function() {
++ // dialog type calender isn't working in Konqueror beacuse it's not a supported browser for either jQuery or jQuery UI
++ // http://groups.google.com/group/jquery-ui/browse_thread/thread/ea61238c34cb5f33/046837b02fb90b5c
++ if (navigator.appName != 'Konqueror') {
++ $(".inline_date_pick").click(function() {
++ var masterObj = this;
++ var masterObjPos = $(masterObj).offset();
++ // offset gives uses top and left but datepicker needs pageX and pageY
++ var masterObjPos = {pageX: masterObjPos.left, pageY: masterObjPos.top};
++ $(this).datepicker(
++ // we use dialog type calender so we won't haveto have a hidden element on the page
++ 'dialog',
++ // selected date
++ masterObj.innerHTML,
++ // onclick handler
++ function (date, dteObj) {
++ fieldName = masterObj.id.substr(0,masterObj.id.indexOf('|'));
++ issueID = masterObj.id.substr(masterObj.id.indexOf('|')+1);
++ if (date == '') {
++ // clear button
++ dteObj.selectedDay = 0;
++ dteObj.selectedMonth = 0;
++ dteObj.selectedYear = 0;
++ }
++ //alertProperties(date);
++ $.post("/ajax/update.php", {fieldName: fieldName, issueID: issueID, day: dteObj.selectedDay, month: (dteObj.selectedMonth+1), year: dteObj.selectedYear}, function(data) {
++ masterObj.innerHTML = data;
++ }, "text");
++ },
++ // config
++ {dateFormat: 'dd M yy', duration: ""},
++ // position of the datepicker calender - taken from div's offset
++ masterObjPos
++ );
++ return false;
++ });
++ }
++});
+
-+ $usr_id = Auth::getUserID();
-+ $prj_id = self::getProjectID($issue_id);
+ //-->
+--- eventum-2.2/htdocs/js/global.js.~1~ 1970-01-01 02:00:00.000000000 +0200
++++ eventum-2.2-order/htdocs/js/global.js.~1~ 2009-09-14 18:07:55.000000000 +0300
+@@ -0,0 +1,801 @@
++<!--
++// @(#) $Id$
++var today = new Date();
++var expires = new Date(today.getTime() + (56 * 86400000));
+
-+ // get all of the 'current' information of this issue
-+ $current = self::getDetails($issue_id);
++function addFileRow(element_name, field_name)
++{
++ if (document.all) {
++ var fileTable = document.all[element_name];
++ } else if (!document.all && document.getElementById) {
++ var fileTable = document.getElementById(element_name);
++ }
++ if (!fileTable) {
++ return;
++ }
++ rows = fileTable.rows.length;
+
-+ $stmt = "UPDATE
-+ " . APP_DEFAULT_DB . "." . APP_TABLE_PREFIX . "issue
-+ SET
-+ iss_updated_date='" . Date_Helper::getCurrentDateGMT() . "',
-+ iss_last_public_action_date='" . Date_Helper::getCurrentDateGMT() . "',
-+ iss_last_public_action_type='updated'";
++ // check if last box is empty and if it is, don't add another
++ if (document.all) {
++ var last_field = document.all[field_name + '_' + rows];
++ } else if (!document.all && document.getElementById) {
++ var last_field = document.getElementById(field_name + '_' + rows);
++ }
++ if (last_field && last_field.value == '') {
++ return;
++ }
+
-+ switch ($field_name) {
-+ case 'category':
-+ $stmt .= ", iss_prc_id = " . Misc::escapeInteger($filed_value);
-+ break;
-+ case 'release':
-+ $stmt .= ", iss_pre_id = " . Misc::escapeInteger($filed_value);
-+ break;
-+ case 'expected_resolution_date':
-+ $stmt .= ", iss_expected_resolution_date = '" . Misc::escapeString($filed_value) . "'";
-+ break;
-+ case 'release':
-+ $stmt .= ", iss_pre_id = " . Misc::escapeInteger($filed_value);
-+ break;
-+ case 'priority':
-+ $stmt .= ", iss_pri_id = " . Misc::escapeInteger($filed_value);
-+ break;
-+ case 'status':
-+ $stmt .= ", iss_sta_id = " . Misc::escapeInteger($filed_value);
-+ break;
-+ case 'resolution':
-+ $stmt .= ", iss_res_id = " . Misc::escapeInteger($filed_value);
-+ break;
-+ case 'summary':
-+ $stmt .= ", iss_summary = '" . Misc::escapeString($filed_value) . "'";
-+ break;
-+ case 'description':
-+ $stmt .= ", iss_description = '" . Misc::escapeString($filed_value) . "'";
-+ break;
-+ case 'estimated_dev_time':
-+ $stmt .= ", iss_dev_time = '" . Misc::escapeString($filed_value) . "'";
-+ break;
-+ case 'percent_complete':
-+ $stmt .= ", iss_percent_complete = '" . Misc::escapeString($filed_value) . "'";
-+ break;
-+ case 'trigger_reminders':
-+ $stmt .= ", iss_trigger_reminders = " . Misc::escapeInteger($filed_value);
-+ break;
-+ case 'group':
-+ $stmt .= ", iss_grp_id = " . Misc::escapeInteger($filed_value);
-+ break;
-+ case 'private':
-+ $stmt .= ", iss_private = " . Misc::escapeInteger($filed_value);
-+ break;
-+ default:
-+ Error_Handler::logError("Unknown field name $field_name", __FILE__, __LINE__);
-+ return -1;
-+ break;
++ newRow = fileTable.insertRow(rows);
++ cell = newRow.insertCell(0);
++ if (document.all) {
++ cell.innerHTML = '<input id="' + field_name + '_' + (rows+1) + '" class="shortcut" size="40" type="file" name="' + field_name + '" onChange="javascript:addFileRow(\'' + element_name + '\', \'' + field_name + '\');">';
++ } else {
++ var input = document.createElement('INPUT');
++ input.setAttribute('type', 'file');
++ input.name = field_name;
++ input.className = 'shortcut';
++ input.size = 40;
++ input.onchange = new Function('addFileRow(\'' + element_name + '\', \'' + field_name + '\');');
++ input.id = field_name + '_' + (rows+1);
++ cell.appendChild(input);
++ }
++}
++
++function inArray(value, stack)
++{
++ for (var i = 0; i < stack.length; i++) {
++ if (stack[i] == value) {
++ return true;
+ }
++ }
++ return false;
++}
+
-+ $stmt .= "
-+ WHERE
-+ iss_id=$issue_id";
++function getEmailFromAddress(str)
++{
++ var first_pos = str.lastIndexOf('<');
++ var second_pos = str.lastIndexOf('>');
++ if ((first_pos != -1) && (second_pos != -1)) {
++ return str.substring(first_pos+1, second_pos);
++ } else {
++ return str;
++ }
++}
+
-+ $res = DB_Helper::getInstance()->query($stmt);
-+ if (PEAR::isError($res)) {
-+ Error_Handler::logError(array($res->getMessage(), $res->getDebugInfo()), __FILE__, __LINE__);
-+ return -1;
-+ } else {
-+ $new = array(
-+ 'category' => $current['iss_prc_id'],
-+ 'release' => $current['iss_pre_id'],
-+ 'expected_resolution_date' => $current['iss_expected_resolution_date'],
-+ 'release' => $current['iss_pre_id'],
-+ 'priority' => $current['iss_pri_id'],
-+ 'status' => $current['iss_sta_id'],
-+ 'resolution' => $current['iss_res_id'],
-+ 'summary' => $current['iss_summary'],
-+ 'description' => $current['iss_description'],
-+ 'estimated_dev_time' => $current['iss_dev_time'],
-+ 'percent_complete' => $current['iss_percent_complete'],
-+ 'trigger_reminders' => $current['iss_trigger_reminders'],
-+ 'group' => $current['iss_grp_id'],
-+ 'iss_private' => $current['private']
-+ );
-+ $new[$field_name] = $filed_value;
++function closeAndRefresh()
++{
++ opener.location.href = opener.location;
++ window.close();
++}
+
-+ // add change to the history (only for changes on specific fields?)
-+ $updated_fields = array();
-+ if ($field_name == 'expected_resolution_date' && $current["iss_expected_resolution_date"] != $filed_value) {
-+ $updated_fields["Expected Resolution Date"] = History::formatChanges($current["iss_expected_resolution_date"], $filed_value);
-+ }
-+ if ($field_name == 'category' && $current["iss_prc_id"] != $filed_value) {
-+ $updated_fields["Category"] = History::formatChanges(Category::getTitle($current["iss_prc_id"]), Category::getTitle($filed_value));
-+ }
-+ if ($field_name == 'release' && $current["iss_pre_id"] != $filed_value) {
-+ $updated_fields["Release"] = History::formatChanges(Release::getTitle($current["iss_pre_id"]), Release::getTitle($filed_value));
-+ }
-+ if ($field_name == 'priority' && $current["iss_pri_id"] != $filed_value) {
-+ $updated_fields["Priority"] = History::formatChanges(Priority::getTitle($current["iss_pri_id"]), Priority::getTitle($filed_value));
-+ Workflow::handlePriorityChange($prj_id, $issue_id, $usr_id, $current, $new);
-+ }
-+ if ($field_name == 'status' && $current["iss_sta_id"] != $filed_value) {
-+ // clear out the last-triggered-reminder flag when changing the status of an issue
-+ Reminder_Action::clearLastTriggered($issue_id);
++function str_replace(s, srch, rplc)
++{
++ var tmp = s;
++ var tmp_before = new String();
++ var tmp_after = new String();
++ var tmp_output = new String();
++ var int_before = 0;
++ var int_after = 0;
+
-+ // if old status was closed and new status is not, clear closed data from issue.
-+ $old_status_details = Status::getDetails($current['iss_sta_id']);
-+ if ($old_status_details['sta_is_closed'] == 1) {
-+ $new_status_details = Status::getDetails($filed_value);
-+ if ($new_status_details['sta_is_closed'] != 1) {
-+ self::clearClosed($issue_id);
-+ }
-+ }
-+ $updated_fields["Status"] = History::formatChanges(Status::getStatusTitle($current["iss_sta_id"]), Status::getStatusTitle($filed_value));
-+ }
-+ if ($field_name == 'resolution' && $current["iss_res_id"] != $filed_value) {
-+ $updated_fields["Resolution"] = History::formatChanges(Resolution::getTitle($current["iss_res_id"]), Resolution::getTitle($filed_value));
-+ }
-+ if ($field_name == 'estimated_dev_time' && $current["iss_dev_time"] != $filed_value) {
-+ $updated_fields["Estimated Dev. Time"] = History::formatChanges(Misc::getFormattedTime(($current["iss_dev_time"]*60)), Misc::getFormattedTime(($filed_value*60)));
-+ }
-+ if ($field_name == 'summary' && $current["iss_summary"] != $filed_value) {
-+ $updated_fields["Summary"] = '';
-+ }
-+ if ($field_name == 'description' && $current["iss_description"] != $filed_value) {
-+ $updated_fields["Description"] = '';
-+ }
-+ if ($field_name == 'private' && ($filed_value != $current['iss_private'])) {
-+ $updated_fields["Private"] = History::formatChanges(Misc::getBooleanDisplayValue($current['iss_private']), Misc::getBooleanDisplayValue($filed_value));
-+ }
-+ if (count($updated_fields) > 0) {
-+ // log the changes
-+ $changes = '';
-+ $i = 0;
-+ foreach ($updated_fields as $key => $value) {
-+ if ($i > 0) {
-+ $changes .= "; ";
-+ }
-+ if (($key != "Summary") && ($key != "Description")) {
-+ $changes .= "$key: $value";
-+ } else {
-+ $changes .= "$key";
-+ }
-+ $i++;
-+ }
++ while (tmp.toUpperCase().indexOf(srch.toUpperCase()) > -1) {
++ int_before = tmp.toUpperCase().indexOf(srch.toUpperCase());
++ tmp_before = tmp.substring(0, int_before);
++ tmp_output = tmp_output + tmp_before;
++ tmp_output = tmp_output + rplc;
++ int_after = tmp.length - srch.length + 1;
++ tmp = tmp.substring(int_before + srch.length);
++ }
+
-+ History::add($issue_id, $usr_id, History::getTypeID('issue_updated'), "Issue updated ($changes) by " . User::getFullName($usr_id));
-+ // send notifications for the issue being updated
-+ Notification::notifyIssueUpdated($issue_id, $current, $new);
-+ }
++ return tmp_output + tmp;
++}
++
++function displayFixedWidth(element_name)
++{
++ var el = getPageElement(element_name);
++ // only do this for mozilla
++ if (is_nav6up) {
++ var content = el.innerHTML;
++ el.innerHTML = '<pre>' + str_replace(content, "<br>", '') + '</pre>';
++ el.className = '';
++ }
++ el.style.fontFamily = 'Mono, Monaco, Courier New, Courier';
++ el.style.whiteSpace = 'pre';
++}
++
++function showSelections(form_name, field_name)
++{
++ var f = getForm(form_name);
++ var field = getFormElement(f, field_name);
++ var selections = getSelectedItems(field);
++ var selected_names = new Array();
++ for (var i = 0; i < selections.length; i++) {
++ selected_names.push(selections[i].text);
++ }
++ var display_div = getPageElement('selection_' + field_name);
++ display_div.innerHTML = 'Current Selections: ' + selected_names.join(', ');
++}
++
++function replaceWords(str, original, replacement)
++{
++ var lines = str.split("\n");
++ for (var i = 0; i < lines.length; i++) {
++ lines[i] = replaceWordsOnLine(lines[i], original, replacement);
++ }
++ return lines.join("\n");
++}
++
++function replaceWordsOnLine(str, original, replacement)
++{
++ var words = str.split(' ');
++ for (var i = 0; i < words.length; i++) {
++ words[i] = words[i].replace(/^\s*/, '').replace(/\s*$/, '');
++ if (words[i] == original) {
++ words[i] = replacement;
+ }
-+ return 1;
+ }
++ return words.join(' ');
++}
+
-
- /**
- * Move the issue to a new project
-@@ -1820,16 +1991,33 @@
- {
- $issue_id = Misc::escapeInteger($issue_id);
- $assignee_usr_id = Misc::escapeInteger($assignee_usr_id);
-+ $order = 1;
-+ // move all orders down to free "order space" for this new association
-+ $stmt = "UPDATE
-+ " . APP_DEFAULT_DB . "." . APP_TABLE_PREFIX . "issue_user
-+ SET
-+ isu_order = isu_order + 1
-+ WHERE
-+ isu_usr_id = $assignee_usr_id AND
-+ isu_order >= $order";
-+ $res = DB_Helper::getInstance()->query($stmt);
-+ if (PEAR::isError($res)) {
-+ Error_Handler::logError(array($res->getMessage(), $res->getDebugInfo()), __FILE__, __LINE__);
-+ return -1;
++function checkSpelling(form_name, field_name)
++{
++ var features = 'width=420,height=400,top=30,left=30,resizable=yes,scrollbars=yes,toolbar=no,location=no,menubar=no,status=no';
++ var popupWin = window.open('spell_check.php?form_name=' + form_name + '&field_name=' + field_name, '_spellChecking', features);
++ popupWin.focus();
++}
++
++function updateTimeFields(form_name, year_field, month_field, day_field, hour_field, minute_field, date)
++{
++ var f = getForm(form_name);
++ if (typeof date == 'undefined') {
++ date = new Date();
++ }
++ selectOption(f, month_field, padDateValue(date.getMonth()+1));
++ selectOption(f, day_field, padDateValue(date.getDate()));
++ selectOption(f, year_field, date.getFullYear());
++ selectOption(f, hour_field, padDateValue(date.getHours()));
++ // minutes need special case due the 5 minute granularity
++ var minutes = Math.floor(date.getMinutes() / 5) * 5;
++ selectOption(f, minute_field, padDateValue(minutes));
++}
++
++function padDateValue(str)
++{
++ if (str.length == 1) {
++ str = '0' + str;
++ }
++ return str;
++}
++
++function resizeTextarea(page_name, form_name, field_name, change)
++{
++ var f = getForm(form_name);
++ var field = getFormElement(f, field_name);
++ field.cols = field.cols + change;
++ var cookie_name = 'textarea_' + page_name + '_' + field_name;
++ setCookie(cookie_name, field.cols, expires);
++}
++
++function removeOptionByValue(f, field_name, value)
++{
++ var field = getFormElement(f, field_name);
++ for (var i = 0; i < field.options.length; i++) {
++ if (field.options[i].value == value) {
++ field.options[i] = null;
+ }
-+ // insert the new association
- $stmt = "INSERT INTO
- " . APP_DEFAULT_DB . "." . APP_TABLE_PREFIX . "issue_user
- (
- isu_iss_id,
- isu_usr_id,
-- isu_assigned_date
-+ isu_assigned_date,
-+ isu_order
- ) VALUES (
- $issue_id,
- $assignee_usr_id,
-- '" . Date_Helper::getCurrentDateGMT() . "'
-+ '" . Date_Helper::getCurrentDateGMT() . "',
-+ $order
- )";
- $res = DB_Helper::getInstance()->query($stmt);
- if (PEAR::isError($res)) {
-@@ -1844,6 +2032,78 @@
- }
- }
-
-+ /**
-+ * Method used to get the order list to be rearranged
-+ *
-+ * @access private
-+ * @param string $issue_id The issue ID or a comma seperated list of IDs already prepared for giving to mysql
-+ * @param string $usr_id The user to remove. When not specified, all users are taken as to be removed for that issue
-+ * @return mixed delete order list to be rearranged. Used as a parameter to the method of rearranging the order.
-+ */
-+ function getDeleteUserAssociationOrderList($issue_id, $usr_id = "")
-+ {
-+ // find all affected associantion orders
-+ $stmt = "SELECT isu_usr_id, isu_order FROM
-+ " . APP_DEFAULT_DB . "." . APP_TABLE_PREFIX . "issue_user
-+ WHERE
-+ isu_iss_id IN ($issue_id)";
-+ if ($usr_id !== FALSE) {
-+ $stmt.= " AND isu_usr_id IN ($usr_id)";
++ }
++}
++
++function getTotalCheckboxes(f, field_name)
++{
++ var total = 0;
++ for (var i = 0; i < f.elements.length; i++) {
++ if (f.elements[i].name == field_name) {
++ total++;
+ }
-+ $stmt.= "ORDER BY isu_order";
-+ $res = DB_Helper::getInstance()->getAll($stmt, DB_FETCHMODE_ASSOC);
-+ if (PEAR::isError($res)) {
-+ Error_Handler::logError(array($res->getMessage(), $res->getDebugInfo()), __FILE__, __LINE__);
-+ return -1;
-+ } else {
-+ $deleted_orders = array();
-+ foreach ($res as $row) {
-+ if (empty($deleted_orders[$row['isu_usr_id']])) {
-+ $deleted_orders[$row['isu_usr_id']] = array();
++ }
++ return total;
++}
++
++function getTotalCheckboxesChecked(f, field_name)
++{
++ var total = 0;
++ for (var i = 0; i < f.elements.length; i++) {
++ if ((f.elements[i].name == field_name) && (f.elements[i].checked)) {
++ total++;
++ }
++ }
++ return total;
++}
++
++function hideComboBoxes(except_field)
++{
++ for (var i = 0; i < document.forms.length; i++) {
++ for (var y = 0; y < document.forms[i].elements.length; y++) {
++ if (((document.forms[i].elements[y].type == 'select-one') ||
++ (document.forms[i].elements[y].type == 'select-multiple')) &&
++ (document.forms[i].elements[y].name != except_field) &&
<<Diff was trimmed, longer than 597 lines>>
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/eventum/eventum-order.patch?r1=1.21&r2=1.22&f=u
More information about the pld-cvs-commit
mailing list