@@ -125,8 +125,7 @@ |
||
125 | 125 | if(!$sNoScript) |
126 | 126 | { |
127 | 127 | return "jaxon.dialogs.jalert.confirm(" . $sQuestion . ",'" . $sTitle . "',function(){" . $sYesScript . ";})"; |
128 | - } |
|
129 | - else |
|
128 | + } else |
|
130 | 129 | { |
131 | 130 | return "jaxon.dialogs.jalert.confirm(" . $sQuestion . ",'" . $sTitle . "',function(){" . $sYesScript . ";},function(){" . $sNoScript . ";})"; |
132 | 131 | } |
@@ -122,8 +122,7 @@ |
||
122 | 122 | if(!$sNoScript) |
123 | 123 | { |
124 | 124 | return "jaxon.dialogs.swal.confirm(" . $sQuestion . ",'" . $sTitle . "',function(){" . $sYesScript . ";})"; |
125 | - } |
|
126 | - else |
|
125 | + } else |
|
127 | 126 | { |
128 | 127 | return "jaxon.dialogs.swal.confirm(" . $sQuestion . ",'" . $sTitle . "',function(){" . $sYesScript . ";},function(){" . $sNoScript . ";})"; |
129 | 128 | } |
@@ -129,8 +129,7 @@ |
||
129 | 129 | if(($sTitle)) |
130 | 130 | { |
131 | 131 | return "BootstrapDialog.alert({message:" . $sMessage . ", title:'" . $sTitle . "', type:" . $sType . "})"; |
132 | - } |
|
133 | - else |
|
132 | + } else |
|
134 | 133 | { |
135 | 134 | return "BootstrapDialog.alert({message:" . $sMessage . ", type:" . $sType . "})"; |
136 | 135 | } |
@@ -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 | } |
@@ -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 | } |
@@ -29,8 +29,7 @@ |
||
29 | 29 | try |
30 | 30 | { |
31 | 31 | $jaxon->dialog()->registerLibrary($sClass, $sClass::NAME); |
32 | - } |
|
33 | - catch(SetupException $e){} |
|
32 | + } catch(SetupException $e){} |
|
34 | 33 | } |
35 | 34 | // Register the template dir into the template renderer |
36 | 35 | $jaxon->template()->addNamespace('jaxon::dialogs', dirname(__DIR__) . '/templates'); |
@@ -90,8 +90,7 @@ |
||
90 | 90 | { |
91 | 91 | $aOptions['buttons']['cancel'] = $aButton['title']; |
92 | 92 | $aOptions['oncancel'] = 'jaxon.dialogs.xdialog.hide()'; |
93 | - } |
|
94 | - else |
|
93 | + } else |
|
95 | 94 | { |
96 | 95 | $aOptions['buttons']['ok'] = $aButton['title']; |
97 | 96 | $aOptions['onok'] = $aButton['click']; |