Jump to content

Featured Replies

Hello
In my website, when we click on any of these download links, the pop-up page closes, and to download other download links, we have to click on download this file again? I want the pop-up page not to close until the last download is downloaded.

(I also added target="_blank" to the link, but it didn't work )

 

222.jpg

Link to comment
https://ipbmafia.ru/topic/27276-close-the-pop-up-after-downloading-any-file/
Share on other sites

Can you please guide me so that the dialogue page does not close when I click on the download link?

@Exception

Edited by afshin20

1 час назад, afshin20 сказал:

Can you please guide me so that the dialogue page does not close when I click on the download link?

@Exception

надо делать mixin с изменением js функции doDownload, там при клике на кнопку срабатывает триггер closeDialog

1 hour ago, Exception said:

надо делать mixin с изменением js функции doDownload, там при клике на кнопку срабатывает триггер closeDialog

Can you give me the code JS?

@Exception

Removing data-action="download" in the link below solves the problem, but I want to do this with css or java, can you give me the code?

	<a href='{$fileObject->url('download')->setQueryString( array( 'r' => $k, 'confirm' => 1, 't' => 1, 'version' => isset( \IPS\Request::i()->version ) ? \IPS\Request::i()->version : NULL ) )->csrf()}' class='ipsButton ipsButton_primary ipsButton_small' data-action="download" {{if member.group['idm_wait_period']}}data-wait='true'{{endif}}>{lang="download"}</a>

 

Только что, afshin20 сказал:

can you give me the code?

нет

4 minutes ago, Exception said:

нет

why?

@Exception

Just tell me how to disable data-action="download" inside this link.

	<a href='{$fileObject->url('download')->setQueryString( array( 'r' => $k, 'confirm' => 1, 't' => 1, 'version' => isset( \IPS\Request::i()->version ) ? \IPS\Request::i()->version : NULL ) )->csrf()}' class='ipsButton ipsButton_primary ipsButton_small' data-action="download" {{if member.group['idm_wait_period']}}data-wait='true'{{endif}}>{lang="download"}</a>

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.


Guest
Ответить в этой теме...

Последние посетители 0

  • No registered users viewing this page.