Go to the source code of this file.
◆ markCheckboxes()
Definition at line 110 of file users_grid_js.phtml.
111 <?=
$myBlock->getJsObjectName() ?>.rows.each(
function(row)
113 $(row).getElementsByClassName(
'checkbox')[0].checked =
value;
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
roleUsersRowInit(grid, row)
◆ massSelectUsers()
massSelectUsers |
( |
allCheckbox |
| ) |
|
Definition at line 94 of file users_grid_js.phtml.
95 if (!allCheckbox.checked && _.size(checkBoxes._object) > 0) {
96 allCheckbox.checked =
true;
98 content:
"<?= /* @escapeNotVerified */ __('Warning!\r\nThis action will remove those users from already assigned roles\r\nAre you sure?') ?>",
100 confirm:
function () {
101 allCheckbox.checked =
false;
◆ onLoad()
Definition at line 117 of file users_grid_js.phtml.
118 if (typeof <?= /* @escapeNotVerified */ $myBlock->
getJsObjectName() ?> !==
'undefined') {
128 rows.each(
function (row) {
131 $(
'in_role_user_old').
value = $(
'in_role_user').value;
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
<?=$myBlock-> getJsObjectName() ?>.rows.each(function(row)
massSelectUsers(allCheckbox)
roleUsersRowInit(grid, row)
registerUserRole(grid, element, checked)
roleUsersRowClick(grid, event)
◆ registerUserRole()
registerUserRole |
( |
grid |
, |
|
|
element |
, |
|
|
checked |
|
|
) |
| |
Definition at line 27 of file users_grid_js.phtml.
30 checkBoxes.set(element.value, 0);
32 checkBoxes.unset(element.value);
34 $(
'in_role_user').
value = checkBoxes.toQueryString();
35 grid.reloadParams = {
'in_role_user[]':checkBoxes.keys()};
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
◆ roleUsersRowClick()
roleUsersRowClick |
( |
grid |
, |
|
|
event |
|
|
) |
| |
Definition at line 38 of file users_grid_js.phtml.
40 var trElement = Event.findElement(event,
'tr');
41 var isInput = Event.element(event).tagName ==
'INPUT';
43 var
checkbox = Element.getElementsBySelector(trElement,
'input');
49 content:
"<?= /* @escapeNotVerified */ __('Warning!\r\nThis action will remove this user from already assigned role\r\nAre you sure?') ?>",
51 confirm:
function () {
54 varienElementMethods.setHasChanges(
checkbox[0]);
60 $(
'in_role_user').
value = checkBoxes.toQueryString();
62 'in_role_user[]': checkBoxes.keys()
70 $(
'in_role_user').
value = checkBoxes.toQueryString();
72 'in_role_user[]': checkBoxes.keys()
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
jquery extjs ext tree checkbox
◆ roleUsersRowInit()
roleUsersRowInit |
( |
grid |
, |
|
|
row |
|
|
) |
| |
Definition at line 79 of file users_grid_js.phtml.
81 var
checkbox = $(row).getElementsByClassName(
'checkbox')[0];
89 $(
'in_role_user').
value = checkBoxes.toQueryString();
90 grid.reloadParams = {
'in_role_user[]':checkBoxes.keys()};
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
jquery extjs ext tree checkbox
◆ $myBlock
$myBlock = $block->getLayout()->getBlock('roleUsersGrid') |
◆ endif
◆ warning