mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
ncm2
This commit is contained in:
parent
cbbfc337df
commit
ce00d59f00
@ -4438,7 +4438,7 @@ function html_print_switch($attributes=[])
|
|||||||
|
|
||||||
$disabled_class = (bool) ($attributes['disabled']) ? ' p-slider-disabled' : '';
|
$disabled_class = (bool) ($attributes['disabled']) ? ' p-slider-disabled' : '';
|
||||||
|
|
||||||
return "<label class='p-switch' style='".$attributes['style']."'>
|
return "<label class='p-switch ".$attributes['container-class']."' style='".$attributes['style']."'>
|
||||||
<input type='checkbox' ".$html_expand.">
|
<input type='checkbox' ".$html_expand.">
|
||||||
<span class='p-slider".$disabled_class."'></span>
|
<span class='p-slider".$disabled_class."'></span>
|
||||||
</label>";
|
</label>";
|
||||||
|
@ -161,6 +161,7 @@ function load_modal(settings) {
|
|||||||
required_buttons.push({
|
required_buttons.push({
|
||||||
class:
|
class:
|
||||||
"ui-widget ui-state-default ui-corner-all ui-button-text-only sub upd submit-cancel",
|
"ui-widget ui-state-default ui-corner-all ui-button-text-only sub upd submit-cancel",
|
||||||
|
id: settings.modal.cancel_button_id,
|
||||||
text: settings.modal.cancel,
|
text: settings.modal.cancel,
|
||||||
click: function() {
|
click: function() {
|
||||||
if (settings.oncancel != undefined) {
|
if (settings.oncancel != undefined) {
|
||||||
@ -362,6 +363,7 @@ function load_modal(settings) {
|
|||||||
class:
|
class:
|
||||||
"ui-widget ui-state-default ui-corner-all ui-button-text-only sub ok submit-next",
|
"ui-widget ui-state-default ui-corner-all ui-button-text-only sub ok submit-next",
|
||||||
text: settings.modal.ok,
|
text: settings.modal.ok,
|
||||||
|
id: settings.modal.ok_button_id,
|
||||||
click: function() {
|
click: function() {
|
||||||
if (
|
if (
|
||||||
settings.onsubmit != undefined &&
|
settings.onsubmit != undefined &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user