I have a view which has a listview inside. When I click on an item a ModalView which shows the detail is opening. When I click remove, the item is being removed.
My problem is, when I click on an item inside the listview, the dialog is openning again with the related data but the button is not enabled.
What am I doing wrong?
function closeModalViewRemove() {
$("#modalview-app-remove").kendoMobileModalView("close");
};
function deleteFromJson() {
var $app_list = localStorage.getItem('LsAppList');
var AppListJson = JSON.parse($app_list);
jQuery.each(AppListJson, function(i, val) {
if (AppListJson[i].extapp_id == appdetail.get("addAppId"))
{
AppListJson.splice([i], 1);
$app_list = JSON.stringify(AppListJson);
localStorage.setItem('LsAppList',$app_list);
closeModalViewRemove();
}
});
}
My problem is, when I click on an item inside the listview, the dialog is openning again with the related data but the button is not enabled.
What am I doing wrong?
function closeModalViewRemove() {
$("#modalview-app-remove").kendoMobileModalView("close");
};
function deleteFromJson() {
var $app_list = localStorage.getItem('LsAppList');
var AppListJson = JSON.parse($app_list);
jQuery.each(AppListJson, function(i, val) {
if (AppListJson[i].extapp_id == appdetail.get("addAppId"))
{
AppListJson.splice([i], 1);
$app_list = JSON.stringify(AppListJson);
localStorage.setItem('LsAppList',$app_list);
closeModalViewRemove();
}
});
}