Changeset 387
- Timestamp:
- 05/06/08 14:44:23
- Files:
-
- trunk/phpbms/modules/bms/javascript/quickview.js (modified) (2 diffs)
- trunk/phpbms/modules/bms/quickview.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/phpbms/modules/bms/javascript/quickview.js
r384 r387 36 36 +-------------------------------------------------------------------------+ 37 37 */ 38 39 function addClient(){ 40 var clientaddedit = getObjectFromID("addeditfile"); 41 addEditRecord("new","client",clientaddedit.value); 42 } 38 43 39 44 function addEditRecord(newedit,what,addeditfile){ … … 189 194 connect(viewButton, "onclick", quickView.viewClient) 190 195 196 var addButton = getObjectFromID("addButton"); 197 connect(addButton, "onclick", addClient); 198 191 199 selectedInvoice = ""; 192 200 selectedNote = ""; trunk/phpbms/modules/bms/quickview.php
r384 r387 68 68 include("header.php"); 69 69 ?> 70 <form method="post" name="record" id="record" onsubmit="return false;" >70 <form method="post" name="record" id="record" onsubmit="return false;" action="#"> 71 71 <div class="bodyline"> 72 72 <h1><?php echo $pagetitle?></h1> … … 84 84 <?php $theform->showField("clientid")?> 85 85 86 <input type="hidden" id="addeditfile" name="<?php echo getAddEditFile($db,2,"add")?>" />86 <input type="hidden" id="addeditfile" value="<?php echo getAddEditFile($db,2,"add")?>" /> 87 87 <input type="button" value="view" id="viewButton" class="disabledButtons" /> 88 88 <input type="button" value="add new" id="addButton" class="Buttons" />