[SOLVED] Appear and disappear from Autodraft field

Extensions, styles and support for everything else about phpBB
Post Reply
User avatar
jan_2017
Distinguished Donor
Posts: 120
Joined: 13 May 2017, 18:07

[SOLVED] Appear and disappear from Autodraft field

#1

Post by jan_2017 » 22 Sep 2018, 10:20

Hello. I have another problem. I use the extension of pcgf with version 1.1.3. Now a message appears that the template has been saved and disappears after that. But I want to keep this window always visible in which only the text appears without it disappearing and appearing. The author didn't respond to my requests yet.

window is not present:
Draft2.jpg
Draft2.jpg (43.6 KiB) Viewed 219 times
Draft2.jpg
Draft2.jpg (43.6 KiB) Viewed 219 times
Window and message is present:
Draft3.jpg
Draft3.jpg (50.65 KiB) Viewed 219 times
Draft3.jpg
Draft3.jpg (50.65 KiB) Viewed 219 times
Could anyone help me?
Last edited by jan_2017 on 22 Sep 2018, 14:33, edited 1 time in total.

User avatar
jan_2017
Distinguished Donor
Posts: 120
Joined: 13 May 2017, 18:07

Re: Appear and disappear from Autodraft field

#2

Post by jan_2017 » 22 Sep 2018, 14:33

My solution:

open in /ext/pcgf/autodrafts/styles/all/template/javascript

Code: Select all

autodrafts.js
find line 201

change all orange numbers to "ZERO" (0) - like this:

Code: Select all

function showNotification(notificationElement) {
    notificationElement.show();
    pcgfDraftNotificationContainer.show(0);
    setTimeout(function() {
        pcgfDraftNotificationContainer.hide(0);
        notificationElement.hide();
    }, 0);
}
not visible notification!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest