@@ -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 | } |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | */ |
| 96 | 96 | protected function alert(string $sMessage, string $sTitle, string $sType): string |
| 97 | 97 | { |
| 98 | - if($this->returnCode()) |
|
| 98 | + if ($this->returnCode()) |
|
| 99 | 99 | { |
| 100 | 100 | return "jaxon.dialogs.pnotify.alert({text:" . $sMessage . ", type:'" . $sType . "', title:'" . $sTitle . "'})"; |
| 101 | 101 | } |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | public function confirm(string $sQuestion, string $sYesScript, string $sNoScript): string |
| 144 | 144 | { |
| 145 | 145 | $sTitle = $this->helper()->getQuestionTitle(); |
| 146 | - if(!$sNoScript) |
|
| 146 | + if (!$sNoScript) |
|
| 147 | 147 | { |
| 148 | 148 | return "jaxon.dialogs.pnotify.confirm(" . $sQuestion . ",'" . $sTitle . "',function(){" . $sYesScript . ";})"; |
| 149 | 149 | } |
@@ -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 | } |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | */ |
| 124 | 124 | protected function alert(string $sContent, string $sTitle, string $sType): string |
| 125 | 125 | { |
| 126 | - if($this->returnCode()) |
|
| 126 | + if ($this->returnCode()) |
|
| 127 | 127 | { |
| 128 | 128 | return "jaxon.dialogs.bootbox.alert('" . $sType . "'," . $sContent . ",'" . $sTitle . "')"; |
| 129 | 129 | } |
@@ -170,8 +170,7 @@ discard block |
||
| 170 | 170 | { |
| 171 | 171 | $sTitle = $this->helper()->getQuestionTitle(); |
| 172 | 172 | return empty($sNoScript) ? |
| 173 | - "jaxon.dialogs.bootbox.confirm(" . $sQuestion . ",'" . $sTitle . "',function(){" . $sYesScript . ";})" : |
|
| 174 | - "jaxon.dialogs.bootbox.confirm(" . $sQuestion . ",'" . $sTitle . "',function(){" . $sYesScript . |
|
| 173 | + "jaxon.dialogs.bootbox.confirm(" . $sQuestion . ",'" . $sTitle . "',function(){" . $sYesScript . ";})" : "jaxon.dialogs.bootbox.confirm(" . $sQuestion . ",'" . $sTitle . "',function(){" . $sYesScript . |
|
| 175 | 174 | ";},function(){" . $sNoScript . ";})"; |
| 176 | 175 | } |
| 177 | 176 | } |