Jump to content

data-confirm data-confirmType="verify"


Recommended Posts

Posted

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.

Posted
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?

 

Posted
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

Posted
16 minutes ago, bfarber said:

We probably only ever needed it in the ACP so that's where it was built. I don't think there's a specific 'reason' in this case.

Can it changed then in a near release? Need to implement this in a resource.

Tks. 

Archived

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

  • Recently Browsing   0 members

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