Topic Closed


I have Bootswatch Scss with several pages (page1, page2, page3...), each one of them accessible in the menu in page1, page3, page3... One of those pages (page2), takes a while to show because it has to process some data before. So, I need it so a message pops up when the user clicks on menu page2. Maybe, using the onclick event. Can you please help me?


Thamk you,


3 years ago#11117

1.5K Posts
16 Plugins

You could …

  1. Assign page2's menu entry a unique css class name: In Page Manager select page2 and click 'Menu Output - Classes' in the right panel. Use sth. like page-2-link in the  li > a  field.
  2. Open /themes/Bootswatch_Scss/template.php and add the following code to the end of the file
$page->jQueryCode .= '
  $(".page-2-link").on("click", function(e){
    var proceed = confirm("Page2 will take some time to load. Proceed?");
    if (proceed) {
      window.location.href = $(this).attr("href");

Hope it will work.

Edited: 3 years ago#11118

Uau! It works! Thank you Jurgen!
3 years ago#11119

Topic Closed



elFinder 2.1.50 in Upcoming Release

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Ennetb├╝rgen (Schweiz): * Konzeption, Planung und Erstellung Ihres Internet-Auftritts * Betreuung und Aktualisierung/Pflege Ihrer Websi...

Find out more about our Provider Spotlight

Log In