Cannot open Add/edit from modal dialog view page

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
kirondedshem
User
Posts: 642

Cannot open Add/edit from modal dialog view page

Post by kirondedshem »

Ive noticed that I can not open Add/edit page from links on view page if view page is in modal dialog

To test it out Ive gone to demo project->table settings of (models, suppliers,products) And enabled modal dialog for add/edit/view pages.

Then I went to any of the list pages and clicked view for a record, which opens in modal dialog. NOW when i try to click edit or add, it just stays there. This is the same for all the three tables.

BUT when I click on edit or add link from the list page it opens up in modal dialog properly.


Webmaster
User
Posts: 9427

Post by Webmaster »

Please try modifying "ew.js" as follows (see lines marked with ***). We will fix in the next build.

// Hide Modal dialog
function ew_ModalDialogHide(e) {
//...
$dlg.data("showing", false);
$dlg.data("url", null); //***
//...
}

// Show Modal dialog
function ew_ModalDialogShow(args) {
var $ = jQuery, f = args.f, $f = $(f);
$(args.lnk).tooltip("hide"); //***
//...
var $dlg = ewModalDialog || $("#ewModalDialog").on("hidden.bs.modal", ew_ModalDialogHide); // div#ewModalDialog always exists
//if ($dlg.data("showing"))
if ($dlg.data("showing") && $dlg.data("url") == args.url) //

return;
$dlg.data("showing", true);
$dlg.data("url", args.url); //***
args.reload = false;


Post Reply