Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

change picture modal #3821


User avatar
0
dallgood created

The change picture modal is only staying open for a second or two, and then closing. This does not allow the user time to click on the save button, so the picture does not get saved.

If I set break points, sometimes I can get the modal to stay open, click save, and then the picture shows up in the [AppBinaryObjects] table as it is supposed to. How do I get the modal to stay open by itself and not close automatically after a second or two? Thanks!


6 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @dallgood,

    This might be a bug, which of the below template type do you use ?

    • MVC 5.x & jQuery
    • MVC 5.x & AngularJs
    • ASP.NET Core & jQuery
    • ASP.NET Core & Angular 2

    Also, do you have any javascript error on your browser console when you open this dialog ?

    Thanks

  • User Avatar
    0
    alper created
    Support Team

    hi

    i checked the modal on demo.aspnetzero.com page and i see no errors. Modal stays until i close it. did you make any modification in the html or javascript. You can compare the codes with original ones to see what is the reason for quick modal close issue.

  • User Avatar
    0
    dallgood created

    I am using the version MVC 5.x & jQuery (am wondering is that the same version in the demo) No errors that I can see...

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @dallgood,

    Can you commnet out the like _modalManager.close(); in _ChangePictureModal.js and see if it still closes the modal ?

  • User Avatar
    0
    dallgood created

    Hello, I downloaded the most recent project version today ( Project Type: ASP.NET MVC 5.x & jQuery, Project Version: v4.5.1 (latest), Framework: .NET Framework 4.6.1), and it now works. Thank you!

  • User Avatar
    0
    ismcagdas created
    Support Team

    Great :)