@@ -1,10 +1,10 @@ |
||
1 | -<?php if(($this->defaultForMessage)): ?> |
|
1 | +<?php if (($this->defaultForMessage)): ?> |
|
2 | 2 | jaxon.ajax.message.success = jaxon.dialogs.jconfirm.success; |
3 | 3 | jaxon.ajax.message.info = jaxon.dialogs.jconfirm.info; |
4 | 4 | jaxon.ajax.message.warning = jaxon.dialogs.jconfirm.warning; |
5 | 5 | jaxon.ajax.message.error = jaxon.dialogs.jconfirm.error; |
6 | 6 | <?php endif ?> |
7 | -<?php if(($this->defaultForQuestion)): ?> |
|
7 | +<?php if (($this->defaultForQuestion)): ?> |
|
8 | 8 | jaxon.ajax.message.confirm = jaxon.dialogs.jconfirm.confirm; |
9 | 9 | <?php endif ?> |
10 | 10 | jaxon.command.handler.register("jconfirm.show", jaxon.dialogs.jconfirm.show); |
@@ -4,12 +4,12 @@ |
||
4 | 4 | jaxon.command.handler.register("bootstrap.show", jaxon.dialogs.bootstrap.show); |
5 | 5 | jaxon.command.handler.register("bootstrap.hide", jaxon.dialogs.bootstrap.hide); |
6 | 6 | jaxon.command.handler.register("bootstrap.alert", jaxon.dialogs.bootstrap.alert); |
7 | -<?php if(($this->defaultForMessage)): ?> |
|
7 | +<?php if (($this->defaultForMessage)): ?> |
|
8 | 8 | jaxon.ajax.message.success = jaxon.dialogs.bootstrap.success; |
9 | 9 | jaxon.ajax.message.info = jaxon.dialogs.bootstrap.info; |
10 | 10 | jaxon.ajax.message.warning = jaxon.dialogs.bootstrap.warning; |
11 | 11 | jaxon.ajax.message.error = jaxon.dialogs.bootstrap.error; |
12 | 12 | <?php endif ?> |
13 | -<?php if(($this->defaultForQuestion)): ?> |
|
13 | +<?php if (($this->defaultForQuestion)): ?> |
|
14 | 14 | jaxon.ajax.message.confirm = jaxon.dialogs.bootstrap.confirm; |
15 | 15 | <?php endif; |
@@ -1,10 +1,10 @@ |
||
1 | -<?php if(($this->defaultForMessage)): ?> |
|
1 | +<?php if (($this->defaultForMessage)): ?> |
|
2 | 2 | jaxon.ajax.message.success = jaxon.dialogs.pnotify.success; |
3 | 3 | jaxon.ajax.message.info = jaxon.dialogs.pnotify.info; |
4 | 4 | jaxon.ajax.message.warning = jaxon.dialogs.pnotify.warning; |
5 | 5 | jaxon.ajax.message.error = jaxon.dialogs.pnotify.error; |
6 | 6 | <?php endif ?> |
7 | -<?php if(($this->defaultForQuestion)): ?> |
|
7 | +<?php if (($this->defaultForQuestion)): ?> |
|
8 | 8 | jaxon.ajax.message.confirm = jaxon.dialogs.pnotify.confirm; |
9 | 9 | <?php endif ?> |
10 | 10 | PNotify.prototype.options.delay = 5000; |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php echo $this->options ?> |
2 | -<?php if(($this->defaultForMessage)): ?> |
|
2 | +<?php if (($this->defaultForMessage)): ?> |
|
3 | 3 | jaxon.ajax.message.success = jaxon.dialogs.toastr.success; |
4 | 4 | jaxon.ajax.message.info = jaxon.dialogs.toastr.info; |
5 | 5 | jaxon.ajax.message.warning = jaxon.dialogs.toastr.warning; |
@@ -1,4 +1,4 @@ |
||
1 | -<?php if(($this->defaultForMessage)): ?> |
|
1 | +<?php if (($this->defaultForMessage)): ?> |
|
2 | 2 | jaxon.ajax.message.success = jaxon.dialogs.notify.success; |
3 | 3 | jaxon.ajax.message.info = jaxon.dialogs.notify.info; |
4 | 4 | jaxon.ajax.message.warning = jaxon.dialogs.notify.warning; |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | */ |
64 | 64 | public function getScript(): string |
65 | 65 | { |
66 | - return $this->helper()->render('noty/alert.js'); |
|
66 | + return $this->helper()->render('noty/alert.js'); |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | /** |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | */ |
72 | 72 | public function getReadyScript(): string |
73 | 73 | { |
74 | - return $this->helper()->render('noty/ready.js.php'); |
|
74 | + return $this->helper()->render('noty/ready.js.php'); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | /** |
@@ -1,10 +1,10 @@ |
||
1 | -<?php if(($this->defaultForMessage)): ?> |
|
1 | +<?php if (($this->defaultForMessage)): ?> |
|
2 | 2 | jaxon.ajax.message.success = jaxon.dialogs.xdialog.success; |
3 | 3 | jaxon.ajax.message.info = jaxon.dialogs.xdialog.info; |
4 | 4 | jaxon.ajax.message.warning = jaxon.dialogs.xdialog.warning; |
5 | 5 | jaxon.ajax.message.error = jaxon.dialogs.xdialog.error; |
6 | 6 | <?php endif ?> |
7 | -<?php if(($this->defaultForQuestion)): ?> |
|
7 | +<?php if (($this->defaultForQuestion)): ?> |
|
8 | 8 | jaxon.ajax.message.confirm = jaxon.dialogs.xdialog.confirm; |
9 | 9 | <?php endif ?> |
10 | 10 | jaxon.command.handler.register("xdialog.show", jaxon.dialogs.xdialog.show); |
@@ -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'); |
@@ -41,13 +41,13 @@ |
||
41 | 41 | CuteAlertLibrary::class, // CuteAlert |
42 | 42 | ]; |
43 | 43 | $jaxon = jaxon(); |
44 | - foreach($aLibraries as $sClass) |
|
44 | + foreach ($aLibraries as $sClass) |
|
45 | 45 | { |
46 | 46 | try |
47 | 47 | { |
48 | 48 | $jaxon->dialog()->registerLibrary($sClass, $sClass::NAME); |
49 | 49 | } |
50 | - catch(SetupException $e){} |
|
50 | + catch (SetupException $e) {} |
|
51 | 51 | } |
52 | 52 | // Register the template dir into the template renderer |
53 | 53 | $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']; |
@@ -88,9 +88,9 @@ |
||
88 | 88 | $aOptions['title'] = $sTitle; |
89 | 89 | $aOptions['body'] = $sContent; |
90 | 90 | $aOptions['buttons'] = []; |
91 | - foreach($aButtons as $aButton) |
|
91 | + foreach ($aButtons as $aButton) |
|
92 | 92 | { |
93 | - if($aButton['click'] === 'close') |
|
93 | + if ($aButton['click'] === 'close') |
|
94 | 94 | { |
95 | 95 | $aOptions['buttons']['cancel'] = $aButton['title']; |
96 | 96 | $aOptions['oncancel'] = 'jaxon.dialogs.xdialog.hide()'; |