* removed JS backstack (not needed anymore)
* removed JSInterface exit method
This commit is contained in:
parent
0a97d6a5e4
commit
6e6249f903
21
code/boot.js
21
code/boot.js
@ -6,27 +6,6 @@
|
||||
// Used to disable on multitouch devices
|
||||
window.showZoom = true;
|
||||
|
||||
window.setupBackButton = function() {
|
||||
var c = window.isSmartphone()
|
||||
? window.smartphone.mapButton
|
||||
: $('#chatcontrols a.active');
|
||||
|
||||
window.setupBackButton._actions = [c.get(0)];
|
||||
$('#chatcontrols a').click(function() {
|
||||
// ignore shrink button
|
||||
if($(this).hasClass('toggle')) return;
|
||||
window.setupBackButton._actions.push(this);
|
||||
window.setupBackButton._actions = window.setupBackButton._actions.slice(-2);
|
||||
});
|
||||
|
||||
window.goBack = function() {
|
||||
var a = window.setupBackButton._actions[0];
|
||||
if(!a) return;
|
||||
$(a).click();
|
||||
window.setupBackButton._actions = [a];
|
||||
}
|
||||
}
|
||||
|
||||
window.setupLargeImagePreview = function() {
|
||||
$('#portaldetails').on('click', '.imgpreview', function() {
|
||||
var img = $(this).find('img')[0];
|
||||
|
@ -64,13 +64,6 @@ public class IITC_JSInterface {
|
||||
.show();
|
||||
}
|
||||
|
||||
// exit IITC Mobile
|
||||
@JavascriptInterface
|
||||
public void exitIITC() {
|
||||
Log.d("iitcm","no back stack...finishing iitc");
|
||||
((IITC_Mobile) context).finish();
|
||||
}
|
||||
|
||||
// get layers and list them in a dialog
|
||||
@JavascriptInterface
|
||||
public void setLayers(String base_layer, String overlay_layer) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user