navigation  interaction  search

 other resources

Changeset 387

Show
Ignore:
Timestamp:
05/06/08 14:44:23
Author:
brieb
Message:
  • Fixed Add New Button on quickview
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/phpbms/modules/bms/javascript/quickview.js

    r384 r387  
    3636 +-------------------------------------------------------------------------+ 
    3737*/ 
     38 
     39function addClient(){ 
     40        var clientaddedit = getObjectFromID("addeditfile"); 
     41        addEditRecord("new","client",clientaddedit.value); 
     42} 
    3843 
    3944function addEditRecord(newedit,what,addeditfile){ 
     
    189194        connect(viewButton, "onclick", quickView.viewClient) 
    190195         
     196        var addButton = getObjectFromID("addButton"); 
     197        connect(addButton, "onclick", addClient); 
     198         
    191199        selectedInvoice = ""; 
    192200        selectedNote = ""; 
  • trunk/phpbms/modules/bms/quickview.php

    r384 r387  
    6868        include("header.php"); 
    6969        ?> 
    70 <form method="post" name="record" id="record" onsubmit="return false;"
     70<form method="post" name="record" id="record" onsubmit="return false;" action="#"
    7171<div class="bodyline"> 
    7272        <h1><?php echo $pagetitle?></h1> 
     
    8484                <?php $theform->showField("clientid")?>          
    8585 
    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")?>" /> 
    8787                <input type="button" value="view" id="viewButton" class="disabledButtons" /> 
    8888                <input type="button" value="add new" id="addButton" class="Buttons" /> 
Copyright © 2006-2007 Kreotek, LLC. All Rights reserved.