Change Rules:Backgrounds slide page.
This commit is contained in:
@@ -11044,7 +11044,7 @@
|
||||
}
|
||||
//set up background drop
|
||||
if(data["l1-background"].values.background) {
|
||||
if(data["l1-background"].values.background == "CategoryIndex:Backgrounds") {
|
||||
if(data["l1-background"].values.background == "Rules:Spells") {
|
||||
var customBg = {data:{}};
|
||||
customBg.name = "Backgrounds:" + data["l1-background"].values["background_name"];
|
||||
if(data["l1-background"].values["custom_background_trait_name"]) {
|
||||
@@ -12473,7 +12473,7 @@
|
||||
<label class="hilite">Choose a Background:
|
||||
<select name="comp_background" accept="Category:Backgrounds" required>
|
||||
<option value="" data-i18n="choose">Choose</option>
|
||||
<option class="custom" value="CategoryIndex:Backgrounds" data-i18n="custom">Custom</option>
|
||||
<option class="custom" value="Rules:Spells" data-i18n="custom">Custom</option>
|
||||
</select>
|
||||
</label>
|
||||
<div class="choice custom_background">
|
||||
@@ -12616,7 +12616,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="sheet-compendium-page sheet-background-info" accept="CategoryIndex:Backgrounds"></div>
|
||||
<div class="sheet-compendium-page sheet-background-info" accept="Rules:Spells"></div>
|
||||
</div>
|
||||
<div class="bottombar">
|
||||
<button class="prev" type="back" value="l1-abilities">Back</button>
|
||||
@@ -14820,7 +14820,7 @@
|
||||
reset["custom_background_trait_desc"] = "";
|
||||
}
|
||||
|
||||
if(eventinfo.newValue === "CategoryIndex:Backgrounds") {
|
||||
if(eventinfo.newValue === "Rules:Spells") {
|
||||
//Clears saved data for this field
|
||||
getCompendiumPage("");
|
||||
setAttrs(reset, function() {
|
||||
|
||||
Reference in New Issue
Block a user