daily pastebin goal
30%
SHARE
TWEET

Untitled

a guest Jan 16th, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <button class="btn-icon btn-small btn-grey btn-cross" onClick="delete('${ManagerVO.ContactInfoVO.branchId}');"><span>&#160;</span>Delete</button>
  2.    
  3. <input type="button" class="btn-icon btn-small btn-grey btn-cross" onClick="delete('${ManagerVO.ContactInfoVO.branchId}');"><span>&#160;</span>Delete</input>
  4.    
  5. function delete(Id) { $.ajax({
  6.                     type: "POST",
  7.                     url: "/XXX/XXX/XXX/delete",
  8.                     data: "Id=" + Id,
  9.                     success: function(errorVO){
  10.                             alert(errorVO.errorText);                                          
  11.                       },
  12.                       error: function(e){
  13.                           alert('Error, Please try later: ' + e);
  14.                     }});}
  15.    
  16. @RequestMapping(value = "/delete", method = RequestMethod.POST)
  17.     public @ResponseBody
  18.     ResultVO delete(
  19.             @RequestParam(value = "Id", required = true) String Id,
  20.             Model model) {
  21.         ResultVO resultVO = adminService.XXX(Id);
  22.         return resultVO;
  23.     }
  24.    
  25. .btn-icon
  26. {
  27.     background-repeat: repeat-x;
  28.     color: #FFF;    
  29.     font-weight: bold;
  30.     display: inline-block;  
  31.     text-decoration: none;
  32.     border-width: 1px;
  33.     border-style: solid;
  34.     padding: 0 15px 4px;
  35.     *padding: 0 7px 4px;
  36.     margin: 0;
  37.     text-shadow: 1px 1px 1px rgba(0,0,0,.2);
  38.     -moz-box-shadow: 1px 1px 1px rgba(0,0,0,.25);
  39.     -webkit-box-shadow: 1px 1px 1px rgba(0,0,0,.25);
  40.     -moz-border-radius: 4px;
  41.     -webkit-border-radius: 4px;
  42.     filter: progid:DXImageTransform.Microsoft.Shadow(color=#999999,direction=135,strength=2);
  43.     cursor: pointer;
  44.     position: relative;
  45. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top