@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | */ |
| 91 | 91 | protected function alert(string $sMessage, string $sTitle, string $sType): string |
| 92 | 92 | { |
| 93 | - if($this->returnCode()) |
|
| 93 | + if ($this->returnCode()) |
|
| 94 | 94 | { |
| 95 | 95 | return "$('body').overhang({message:" . $sMessage . ", type:'" . $sType . "'})"; |
| 96 | 96 | } |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | */ |
| 138 | 138 | public function confirm(string $sQuestion, string $sYesScript, string $sNoScript): string |
| 139 | 139 | { |
| 140 | - if(!$sNoScript) |
|
| 140 | + if (!$sNoScript) |
|
| 141 | 141 | { |
| 142 | 142 | return "jaxon.dialogs.overhang.confirm(" . $sQuestion . ",function(){" . $sYesScript . ";})"; |
| 143 | 143 | } |
@@ -121,8 +121,7 @@ |
||
| 121 | 121 | if(!$sNoScript) |
| 122 | 122 | { |
| 123 | 123 | return "jaxon.dialogs.overhang.confirm(" . $sQuestion . ",function(){" . $sYesScript . ";})"; |
| 124 | - } |
|
| 125 | - else |
|
| 124 | + } else |
|
| 126 | 125 | { |
| 127 | 126 | return "jaxon.dialogs.overhang.confirm(" . $sQuestion . ",function(){" . $sYesScript . ";},function(){" . $sNoScript . ";})"; |
| 128 | 127 | } |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | */ |
| 93 | 93 | protected function alert(string $sMessage, string $sTitle, string $sType): string |
| 94 | 94 | { |
| 95 | - if($this->returnCode()) |
|
| 95 | + if ($this->returnCode()) |
|
| 96 | 96 | { |
| 97 | 97 | return "jaxon.dialogs.pnotify.alert({text:" . $sMessage . ", type:'" . $sType . "', title:'" . $sTitle . "'})"; |
| 98 | 98 | } |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | public function confirm(string $sQuestion, string $sYesScript, string $sNoScript): string |
| 141 | 141 | { |
| 142 | 142 | $sTitle = $this->xHelper->getQuestionTitle(); |
| 143 | - if(!$sNoScript) |
|
| 143 | + if (!$sNoScript) |
|
| 144 | 144 | { |
| 145 | 145 | return "jaxon.dialogs.pnotify.confirm(" . $sQuestion . ",'" . $sTitle . "',function(){" . $sYesScript . ";})"; |
| 146 | 146 | } |
@@ -124,8 +124,7 @@ |
||
| 124 | 124 | if(!$sNoScript) |
| 125 | 125 | { |
| 126 | 126 | return "jaxon.dialogs.pnotify.confirm(" . $sQuestion . ",'" . $sTitle . "',function(){" . $sYesScript . ";})"; |
| 127 | - } |
|
| 128 | - else |
|
| 127 | + } else |
|
| 129 | 128 | { |
| 130 | 129 | return "jaxon.dialogs.pnotify.confirm(" . $sQuestion . ",'" . $sTitle . "',function(){" . $sYesScript . ";},function(){" . $sNoScript . ";})"; |
| 131 | 130 | } |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | protected function getContainer(): string |
| 57 | 57 | { |
| 58 | 58 | $sContainer = 'bootbox-container'; |
| 59 | - if($this->xHelper->hasOption('dom.container')) |
|
| 59 | + if ($this->xHelper->hasOption('dom.container')) |
|
| 60 | 60 | { |
| 61 | 61 | $sContainer = $this->xHelper->getOption('dom.container'); |
| 62 | 62 | } |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | */ |
| 126 | 126 | protected function alert(string $sContent, string $sTitle, string $sType): string |
| 127 | 127 | { |
| 128 | - if($this->returnCode()) |
|
| 128 | + if ($this->returnCode()) |
|
| 129 | 129 | { |
| 130 | 130 | return "jaxon.dialogs.bootbox.alert('" . $sType . "'," . $sContent . ",'" . $sTitle . "')"; |
| 131 | 131 | } |
@@ -172,8 +172,7 @@ discard block |
||
| 172 | 172 | { |
| 173 | 173 | $sTitle = $this->xHelper->getQuestionTitle(); |
| 174 | 174 | return empty($sNoScript) ? |
| 175 | - "jaxon.dialogs.bootbox.confirm(" . $sQuestion . ",'" . $sTitle . "',function(){" . $sYesScript . ";})" : |
|
| 176 | - "jaxon.dialogs.bootbox.confirm(" . $sQuestion . ",'" . $sTitle . "',function(){" . $sYesScript . |
|
| 175 | + "jaxon.dialogs.bootbox.confirm(" . $sQuestion . ",'" . $sTitle . "',function(){" . $sYesScript . ";})" : "jaxon.dialogs.bootbox.confirm(" . $sQuestion . ",'" . $sTitle . "',function(){" . $sYesScript . |
|
| 177 | 176 | ";},function(){" . $sNoScript . ";})"; |
| 178 | 177 | } |
| 179 | 178 | } |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | */ |
| 91 | 91 | private function alert(string $sMessage, string $sType): string |
| 92 | 92 | { |
| 93 | - if($this->returnCode()) |
|
| 93 | + if ($this->returnCode()) |
|
| 94 | 94 | { |
| 95 | 95 | return "$.simplyToast(" . $sMessage . ", '" . $sType . "')"; |
| 96 | 96 | } |