chore(webui): say "successfully removed" when using a negative quantity
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Build / build (18) (push) Successful in 46s
				
			
		
			
				
	
				Build / build (18) (pull_request) Successful in 43s
				
			
		
			
				
	
				Build / build (20) (push) Successful in 1m8s
				
			
		
			
				
	
				Build / build (22) (push) Successful in 1m9s
				
			
		
			
				
	
				Build / build (20) (pull_request) Successful in 1m6s
				
			
		
			
				
	
				Build / build (22) (pull_request) Successful in 1m7s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Build / build (18) (push) Successful in 46s
				
			Build / build (18) (pull_request) Successful in 43s
				
			Build / build (20) (push) Successful in 1m8s
				
			Build / build (22) (push) Successful in 1m9s
				
			Build / build (20) (pull_request) Successful in 1m6s
				
			Build / build (22) (pull_request) Successful in 1m7s
				
			This commit is contained in:
		
							parent
							
								
									aa95074ee0
								
							
						
					
					
						commit
						6240636552
					
				@ -812,20 +812,27 @@ function doAcquireMiscItems() {
 | 
				
			|||||||
        $("#miscitem-type").addClass("is-invalid").focus();
 | 
					        $("#miscitem-type").addClass("is-invalid").focus();
 | 
				
			||||||
        return;
 | 
					        return;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    revalidateAuthz(() => {
 | 
					    const count = parseInt($("#miscitem-count").val());
 | 
				
			||||||
        $.post({
 | 
					    if (count != 0) {
 | 
				
			||||||
            url: "/custom/addItems?" + window.authz,
 | 
					        revalidateAuthz(() => {
 | 
				
			||||||
            contentType: "application/json",
 | 
					            $.post({
 | 
				
			||||||
            data: JSON.stringify([
 | 
					                url: "/custom/addItems?" + window.authz,
 | 
				
			||||||
                {
 | 
					                contentType: "application/json",
 | 
				
			||||||
                    ItemType: uniqueName,
 | 
					                data: JSON.stringify([
 | 
				
			||||||
                    ItemCount: parseInt($("#miscitem-count").val())
 | 
					                    {
 | 
				
			||||||
 | 
					                        ItemType: uniqueName,
 | 
				
			||||||
 | 
					                        ItemCount: count
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					                ])
 | 
				
			||||||
 | 
					            }).done(function () {
 | 
				
			||||||
 | 
					                if (count > 0) {
 | 
				
			||||||
 | 
					                    toast(loc("code_succAdded"));
 | 
				
			||||||
 | 
					                } else {
 | 
				
			||||||
 | 
					                    toast(loc("code_succRemoved"));
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            ])
 | 
					            });
 | 
				
			||||||
        }).done(function () {
 | 
					 | 
				
			||||||
            toast(loc("code_succAdded"));
 | 
					 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
    });
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function doAcquireRiven() {
 | 
					function doAcquireRiven() {
 | 
				
			||||||
 | 
				
			|||||||
@ -28,6 +28,7 @@ dict = {
 | 
				
			|||||||
    code_succRankUp: `Successfully ranked up.`,
 | 
					    code_succRankUp: `Successfully ranked up.`,
 | 
				
			||||||
    code_noEquipmentToRankUp: `No equipment to rank up.`,
 | 
					    code_noEquipmentToRankUp: `No equipment to rank up.`,
 | 
				
			||||||
    code_succAdded: `Successfully added.`,
 | 
					    code_succAdded: `Successfully added.`,
 | 
				
			||||||
 | 
					    code_succRemoved: `Successfully removed.`,
 | 
				
			||||||
    code_buffsNumber: `Number of buffs`,
 | 
					    code_buffsNumber: `Number of buffs`,
 | 
				
			||||||
    code_cursesNumber: `Number of curses`,
 | 
					    code_cursesNumber: `Number of curses`,
 | 
				
			||||||
    code_rerollsNumber: `Number of rerolls`,
 | 
					    code_rerollsNumber: `Number of rerolls`,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user