phpBMS

Changeset 688 for trunk

Show
Ignore:
Timestamp:
12/21/09 17:39:35 (2 years ago)
Author:
nate
Message:
  • Changed push_records_addedit and pushrecords.js to not validate twice (and also not validate at all when cancel is clicked) on submission.
Location:
trunk/phpbms/modules/api
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/modules/api/javascript/pushrecords.js

    r649 r688  
    4242                var theForm = getObjectFromID("record"); 
    4343 
     44                //skip validation if cancel 
     45                var cancelClick = getObjectFromID("cancelclick"); 
     46                if(cancelClick.value !=0) 
     47                        return true; 
     48                 
    4449                if(!validateForm(theForm)){ 
    4550                        if(e) 
     
    4752                        return false; 
    4853                } 
    49  
    50         //skip validation if cancel 
    51                 cancelClick = getObjectFromID("cancelclick"); 
    52                 if(cancelClick.value !=0) 
    53                         return true; 
    5454 
    5555        var useCustomDestUuid = getObjectFromID("usecustomdestuuid"); 
  • trunk/phpbms/modules/api/push_records_addedit.php

    r682 r688  
    5555                //Form Elements 
    5656                //============================================================== 
    57                 $theform = new phpbmsForm(); 
     57                $theform = new phpbmsForm(NULL, "post", "record", NULL); 
    5858        $theform->id = $theform->name; 
    5959 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.