diff --git a/samples/appcache-features.html b/samples/appcache-features.html
index e140e04..8a5154f 100644
--- a/samples/appcache-features.html
+++ b/samples/appcache-features.html
@@ -58,7 +58,9 @@
width: 100%;
z-index: 98;
font-size: x-large;
- display: none;
+ position: absolute;
+ top: -9999px !important;
+ left: -9999px !important;
}
#popup-body {
position: relative;
@@ -216,11 +218,11 @@
@@ -261,7 +263,12 @@ require([
var map,busStopsFeatureLayer,currentFeature;
var imgOfflineIndicator;
var pendingEdits = document.getElementById("pending-edits");
- var popup = document.getElementById("popup");
+
+ // Variables for modal popup
+ var modPopup = document.getElementById("popup");
+ var closeBtn = document.getElementById("mod-popup-close-btn");
+ var saveBtn = document.getElementById("mod-popup-save-btn");
+ var deleteBtn = document.getElementById("mod-popup-delete-btn");
// Variables for tile handling
var _wantToCancel;
@@ -283,6 +290,7 @@ require([
var appCacheManager;
var btnOnlineOffline = document.getElementById("btn-online-offline");
+ setClickListeners();
initOffline();
/**
@@ -353,6 +361,12 @@ require([
map.addLayers([busStopsFeatureLayer]);
}
+ function setClickListeners(){
+ closeBtn.onclick = function(evt){
+ hideModalPopup();
+ }
+ }
+
function convertGraphicLayerToJSON(graphics,callback){
var length = graphics.length;
var array = [];
@@ -459,6 +473,7 @@ require([
busStopsFeatureLayer.selectFeatures(query,FeatureLayer.SELECTION_NEW,
function(evt){
console.log("Success: " + JSON.stringify(evt[0].attributes))
+ modPopup.style.position = "static";
},function(err){
console.log("ERROR " + JSON.stringify(err));
});
@@ -544,6 +559,14 @@ require([
}
}
+ function showModalPopup(){
+ modPopup.style.position = "static";
+ }
+
+ function hideModalPopup(){
+ modPopup.style.position = "absolute";
+ }
+
/**
* ************************************
* TILE MANAGEMENT CODE GOES BELOW HERE