Guest User

Untitled

a guest
Jul 16th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. <apex:commandButton onclick="saveAndnewmethod()" value="Save and New"/>
  2. <apex:commandButton onclick="savemethod()" value="Save"/>
  3.  
  4. function save(){
  5. //...common lines
  6. if(someValidations == true){
  7. $('.savebtn').prop('disabled', true);
  8. save_ACC_Cont();//this is an action function of button save
  9. }
  10. }
  11. function saveAndnewmethod(){
  12. //...common lines
  13. if(someValidations == true){
  14. save_and_new();////this is an action function of button save and new
  15. $('.savebtn').prop('disabled', true);
  16. }
  17. }
Add Comment
Please, Sign In to add comment