Jump to content

data-confirm data-confirmType="verify"


Recommended Posts

Does it only works only in ACP?

This:

							<a href="{url="app=advmedit&module=display&controller=display&do=messenger&id={$member->member_id}"}" class="ipsPos_right ipsType_medium" data-confirm data-confirmType="verify" data-confirmIcon="question" data-confirmMessage="{lang="admin_disable_messenger"}" data-confirmSubMessage="{lang="admin_disable_messenger_confirm"}" data-confirmButtons='{expression="json_encode( array( 'yes' => \IPS\Member::loggedIn()->language()->addToStack('no'), 'no' => \IPS\Member::loggedIn()->language()->addToStack('yes'), 'cancel' => \IPS\Member::loggedIn()->language()->addToStack('cancel') ) )" raw="true"}'>
								{lang="admin_disable_messenger"}
							</a>

Shows on ACP like that:

hgNWEbF.png

Same link on public side will show like that:

LM7lgvC.png

Tks.

Link to comment
Share on other sites

6 hours ago, Adriano Faria said:

Does it only works only in ACP?

This:


							<a href="{url="app=advmedit&module=display&controller=display&do=messenger&id={$member->member_id}"}" class="ipsPos_right ipsType_medium" data-confirm data-confirmType="verify" data-confirmIcon="question" data-confirmMessage="{lang="admin_disable_messenger"}" data-confirmSubMessage="{lang="admin_disable_messenger_confirm"}" data-confirmButtons='{expression="json_encode( array( 'yes' => \IPS\Member::loggedIn()->language()->addToStack('no'), 'no' => \IPS\Member::loggedIn()->language()->addToStack('yes'), 'cancel' => \IPS\Member::loggedIn()->language()->addToStack('cancel') ) )" raw="true"}'>
								{lang="admin_disable_messenger"}
							</a>

Shows on ACP like that:

hgNWEbF.png

Same link on public side will show like that:

LM7lgvC.png

Tks.

for the messages or any confirm?

 

Link to comment
Share on other sites

4 minutes ago, Adriano Faria said:

Yes, No and Cancel instead of Ok and Cancel. 

seems like it is admin based, I found 14 hits for the data-confirmButtons and they are all admin, and the actual js I can only find in the dev file itself

dev\js\admin\controllers\core\ips.core.app.js

otherwise it is in the

\applications\core\data\javascript.xml

apart from them 2 the rest is found in the admin phtml's

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...