mirror of
				https://gitlab.com/hashborgir/d2tools.git
				synced 2025-10-31 00:53:39 -05:00 
			
		
		
		
	Bug: When saving new item in Unique Item Editor, item code is saved as 'Array' from PHP, so I need to generate an item code that hasn't been used already.
tabs/UniqueItems.php, add code input field. app.js, add 'code' input field change function Fixed
This commit is contained in:
		| @@ -186,7 +186,9 @@ $(document).ready(function () { | ||||
|     $("input[name='index']").keyup(function () { | ||||
|         $(".itemindex").html($(this).val()); | ||||
|     }); | ||||
|  | ||||
|     $("input[name='code']").keyup(function () { | ||||
|         $(".itemcode").html("Item Code: (" + $(this).val() + ")"); | ||||
|     }); | ||||
|     $('input[name="lvl"]').keyup(function () { | ||||
|         $(".itemlvl").html("Level: " + $(this).val()); | ||||
|     }); | ||||
|   | ||||
| @@ -118,6 +118,14 @@ | ||||
| 			</span> | ||||
| 			<span  class="form-text">Index: the ID pointer that is referenced by the game in TreasureClassEx.txt and CubeMain.txt, this column also contains the string-key used in the TBL files.</span> | ||||
| 		</div> | ||||
| 		<div class="col-2" style="background: #fec;"> | ||||
| 			<p>Code</p> | ||||
| 			<div class="input-group"> | ||||
| 				<input  name="code"  type="text" aria-describedby="codeHelpBlock" required="required" class="form-control input-ucode"> | ||||
| 			</div><span class="help"><i class="fa fa-question-circle" aria-hidden="true"></i> | ||||
| 			</span> | ||||
| 			<span  class="form-text">Enter a 3 or 4 letter unique item code</span> | ||||
| 		</div>         | ||||
|  | ||||
|  | ||||
| 		<div class="col-2" style="background: #eed;"> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user