FIX: bug fixes

* fixed bug in strongs modal where item crossrefs is sometimes null (not all
        strongs numbers relate to a word used in the bible, some are just roots
        of words used in the bible)
 * fixed bug in links.  forgot to update event reference to ui update function
        when i changed it.
This commit is contained in:
jason.wall 2017-01-31 14:16:51 -05:00
parent 6e48e85de2
commit 2293807bfe
5 changed files with 37 additions and 11 deletions

View File

@ -1,5 +1,24 @@
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.walljm.dynamicbible" version="3.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<feature name="Keyboard">
<param name="android-package" value="io.ionic.keyboard.IonicKeyboard" />
<param name="onload" value="true" />
</feature>
<feature name="Whitelist">
<param name="android-package" value="org.apache.cordova.whitelist.WhitelistPlugin" />
<param name="onload" value="true" />
</feature>
<feature name="StatusBar">
<param name="android-package" value="org.apache.cordova.statusbar.StatusBar" />
<param name="onload" value="true" />
</feature>
<feature name="Device">
<param name="android-package" value="org.apache.cordova.device.Device" />
</feature>
<feature name="SplashScreen">
<param name="android-package" value="org.apache.cordova.splashscreen.SplashScreen" />
<param name="onload" value="true" />
</feature>
<name>Dynamic Bible</name>
<description>A bible app designed for bible study</description>
<author email="jason@walljm.com" href="http://dynamicbible.com/">Jason Wall</author>

View File

@ -28,13 +28,15 @@
</li>
</ul>
</template>
<h2>Cross References</h2>
&nbsp;&nbsp;&nbsp;Translated as {{item.crossrefs.ss.length}} words
<dl>
<dd *ngFor="let wrd of item.crossrefs.ss">
<strong>{{wrd.w}}:</strong> <span *ngFor="let p of wrd.rs"><a (click)="openPassage(p.r)">{{makePassage(p.r)}}</a>, </span>
</dd>
</dl>
<div class="strongs-cross" *ngIf="item.crossrefs != null && item.crossrefs.ss != null">
<h2>Cross References</h2>
&nbsp;&nbsp;&nbsp;Translated as {{item.crossrefs.ss.length}} words
<dl>
<dd *ngFor="let wrd of item.crossrefs.ss">
<strong>{{wrd.w}}:</strong> <span *ngFor="let p of wrd.rs"><a (click)="openPassage(p.r)">{{makePassage(p.r)}}</a>, </span>
</dd>
</dl>
</div>
</ion-content>
<ion-content *ngIf="item !== undefined && item.status === -1">
<error-message [msg]="item.msg"></error-message>

View File

@ -26,8 +26,10 @@ export class StrongsModal implements OnInit
this.sn = this.params.get('sn') as number;
this.dict = this.params.get('dict') as string;
this.onItemClicked.subscribe(item =>
this.params.get('onItemClicked').getItems(item)
)
{
let pg = this.params.get('onItemClicked');
pg.updateUIwithItems(item, false)
});
}
ngOnInit(): void

View File

@ -24,7 +24,7 @@
</ul>
</template>
</div>
<div class="strongs-cross">
<div class="strongs-cross" *ngIf="data.crossrefs != null && data.crossrefs.ss != null">
<h2>Cross References</h2>
&nbsp;&nbsp;&nbsp;Translated as {{data.crossrefs.ss.length}} words
<ion-scroll scrollY="true">

View File

@ -99,10 +99,13 @@ export class SearchPage implements OnInit
}
}
}
// initialize the pages.
this.pagesService.initializePages(u.user.saved_pages);
if (this.params.data.queries !== undefined)
this.userProfile.user.items = this.params.data.queries.slice();
if (this.params.data.title === undefined)
this.title = "Search";
else