| ... | ... |
@@ -15,18 +15,19 @@ |
| 15 | 15 |
</div> |
| 16 | 16 |
|
| 17 | 17 |
<script> |
| 18 |
- $(document).ready(function() {
|
|
| 19 |
- $('.cp-dialog .cp-button').click(function(e) {
|
|
| 20 |
- var dialog = $('.cp-dialog');
|
|
| 21 |
- $.ajax({
|
|
| 22 |
- url: '<?php echo $this->commitURL; ?>', |
|
| 23 |
- type: 'GET', |
|
| 24 |
- dataType: 'json', |
|
| 25 |
- success: function (data) {
|
|
| 26 |
- dialog.addClass('cp-a-closing');
|
|
| 27 |
- } |
|
| 28 |
- }); |
|
| 29 |
- }); |
|
| 30 |
- }); |
|
| 31 |
- |
|
| 18 |
+ (function($) {
|
|
| 19 |
+ $(document).ready(function() {
|
|
| 20 |
+ $('.cp-dialog .cp-button').click(function(e) {
|
|
| 21 |
+ var dialog = $('.cp-dialog');
|
|
| 22 |
+ $.ajax({
|
|
| 23 |
+ url: '<?php echo $this->commitURL; ?>', |
|
| 24 |
+ type: 'GET', |
|
| 25 |
+ dataType: 'json', |
|
| 26 |
+ success: function (data) {
|
|
| 27 |
+ dialog.addClass('cp-a-closing');
|
|
| 28 |
+ } |
|
| 29 |
+ }); |
|
| 30 |
+ }); |
|
| 31 |
+ }); |
|
| 32 |
+ })(jQuery); |
|
| 32 | 33 |
</script> |
| 33 | 34 |
\ No newline at end of file |