We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33972
    • 2 Posts
    Hi,

    If you're annoyed by this dialogue every time you make some change and you moving from resource to resource continuously:
    "The changes you have made have not been saved yet. You can choose to stay on the current page in order to save the changes (Cancel), or you can leave this page, losing any changes you have made (OK)"

    Here is a quick way to disable it.
    1)Backup your manager/includes/header.inc.php file
    2) open header.inc.php in editor and comment the following line in checkDirt(evt) function:
    //return message;
    3) refresh your browser

    I have EVO version 1.0.5 and I would really appreciate if developers will include an option to disable it, cause when you have to navigate lot's pages it's driving you crazy.
      • 36416
      • 589 Posts
      I have EVO version 1.0.5 and I would really appreciate if developers will include an option to disable it, cause when you have to navigate lot's pages it's driving you crazy.

      Wouldn't it be better to just make it work like intended (asking you that question only if something's changed in the resource? wink

      IIRC, this bug is in one of the ManagerManager plugins...
        • 16278
        • 928 Posts
        Filed as a bug some time ago: http://bugs.modx.com/issues/3492

        I did find a positive correlation between the site without the problem and use of TVs or TinyMCE or something like that (but not, AFAIR, ManagerManager) - must check that out and update the bug report.
        :( KP
          • 16278
          • 928 Posts
          (I'm sure I posted this yesterday, but it doesn't seem to have survived)
          I tracked this down to ManagerManager after all. The annoying message appears if you include an Image TV in a template used by the resource. Something to do with a bug fix to the showimagetvs widget. Switching managermanager/widgets/showimagetvs/showimagetvs.php back to the file from MODX 1.0.4 fixed it for me much better than the suggestion in the OP.

          See bug reports 3492 and 3582

          ;)
            • 33972
            • 2 Posts
            aha, great! Thanks for this job.
              • 29487
              • 385 Posts
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                Um... translation, please?

                Ok, I did the old trial-and-error bit and it seems OK

                In the file assets/plugins/managermanager/widgets/showimagetv/showimagetvs.php

                1. On line 82 change
                }); // Trigger a change event on load

                To
                $j.data(this,"lastvalue", $j(this).val());
                }).trigger("load"); // Trigger a change event on load

                2. On line 97 change
                $this.trigger("change").data("lastvalue", $this.val());

                to
                $this.trigger("change");

                On my latest dev installation, I don't even have any image TVs and it was giving me that message. With these changes it seems to be working as expected, with or without image TVs. [ed. note: sottwell last edited this post 15 years ago.]
                  Studying MODX in the desert - http://sottwell.com
                  Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                  Join the Slack Community - http://modx.org
                  • 36416
                  • 589 Posts
                  Quote from: sottwell at Sep 21, 2011, 04:36 AM
                  Um... translation, please?

                  Heh, just use Yama's version of ManagerManager for trouble-free experience:
                  https://github.com/yama/ManagerManager