mirror of
https://github.com/Nighthawk42/roll20-character-sheets.git
synced 2026-09-02 05:02:28 +00:00
[Shadowrun 5th Advanced] fix read of experimental
This commit is contained in:
@@ -9829,7 +9829,7 @@ on("change:reloadcheckbox", function(){
|
||||
|
||||
|
||||
on("change:chummercheckbox", function(){
|
||||
getAttrs(["chummertext","chummercheckbox"], function(text) {
|
||||
getAttrs(["chummertext","chummercheckbox", "experimental"], function(text) {
|
||||
if(text.chummercheckbox=="on"){
|
||||
var goodcode=true;
|
||||
var error="";
|
||||
@@ -9841,6 +9841,12 @@ on("change:chummercheckbox", function(){
|
||||
}
|
||||
if(goodcode){
|
||||
console.log("Deleting stuff");
|
||||
if(text.experimental == "on"){
|
||||
getSectionIDs("repeating_contacts", function(idarraye) {
|
||||
for(var i=0; i < idarraye.length; i++) {
|
||||
removeRepeatingRow("repeating_contacts"+idarraye[i] );
|
||||
}});
|
||||
}
|
||||
getSectionIDs("repeating_posqualities", function(idarraya) {
|
||||
for(var i=0; i < idarraya.length; i++) {
|
||||
removeRepeatingRow("repeating_posqualities_"+idarraya[i] );
|
||||
@@ -9865,12 +9871,6 @@ on("change:chummercheckbox", function(){
|
||||
for(var i=0; i < idarraye.length; i++) {
|
||||
removeRepeatingRow("repeating_spells_"+idarraye[i] );
|
||||
}});
|
||||
if(attributes.experimental == "on"){
|
||||
getSectionIDs("repeating_contacts", function(idarraye) {
|
||||
for(var i=0; i < idarraye.length; i++) {
|
||||
removeRepeatingRow("repeating_contacts"+idarraye[i] );
|
||||
}});
|
||||
}
|
||||
getSectionIDs("repeating_initiation", function(idarraye) {
|
||||
for(var i=0; i < idarraye.length; i++) {
|
||||
removeRepeatingRow("repeating_initiation_"+idarraye[i] );
|
||||
@@ -10780,7 +10780,7 @@ on("change:chummercheckbox", function(){
|
||||
goodcode=false;
|
||||
error="Error with Spells: " + err;
|
||||
}
|
||||
if(attributes.experimental == "on"){
|
||||
if(text.experimental == "on"){
|
||||
//import contacts
|
||||
try{
|
||||
if(chummerfile.characters.character.contacts!=null){
|
||||
|
||||
Reference in New Issue
Block a user