Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 7185 | Rev 7188 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 7185 Rev 7187
Línea 1... Línea 1...
1
<?php
1
<?php
Línea 2... Línea 2...
2
 
2
 
-
 
3
$routeEvents = $this->url('calendar/events');
Línea -... Línea 4...
-
 
4
$routeNextEvents = $this->url('helpers/next-events');
Línea 3... Línea 5...
3
$routeEvents = $this->url('calendar/events');
5
 
4
 
6
 
Línea 5... Línea 7...
5
 
7
$this->inlineScript()->appendFile($this->basePath('vendors/moment/moment-with-locales.js'));
Línea 27... Línea 29...
27
jQuery( document ).ready(function( $ ) {
29
jQuery( document ).ready(function( $ ) {
Línea 28... Línea 30...
28
 
30
 
29
    var data_resources  = new Array();
31
    var data_resources  = new Array();
Línea -... Línea 32...
-
 
32
    var data_events = new Array();
-
 
33
 
-
 
34
    $.fn.reloadHelper = function() {
-
 
35
 
-
 
36
 
-
 
37
        NProgress.start();
-
 
38
        $.ajax({
-
 
39
            'dataType'  : 'json',
-
 
40
            'method'    : 'get',
-
 
41
            'url'       :  '$routeNextEvents',
-
 
42
            'data'      :  {
-
 
43
                t : moment().unix()
-
 
44
            },
-
 
45
        }).done(function(response) {
-
 
46
            if(response['success']) {
-
 
47
            
-
 
48
            } else {
-
 
49
                $.fn.showError(response['data']);
-
 
50
            }
-
 
51
        }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
52
            $.fn.showError(textStatus);
-
 
53
        }).always(function() {
-
 
54
            NProgress.done();
-
 
55
        });     
30
    var data_events = new Array();
56
    }
31
 
57
 
32
    $.fn.openBackend = function(url) {
58
    $.fn.openBackend = function(url) {
33
        NProgress.start();
59
        NProgress.start();
34
        $.ajax({
60
        $.ajax({
Línea 100... Línea 126...
100
 
126
 
101
        
127
        
Línea -... Línea 128...
-
 
128
        $.fn.openBackend(action)
-
 
129
    });
Línea 102... Línea 130...
102
        $.fn.openBackend(action)
130
 
103
    });
131
 
104
 
132
 
Línea 105... Línea 133...
105
    
133
    
106
 
134
 
107
});
135
});
108
JS;
136
JS;
109
$this->inlineScript()->captureEnd();
137
$this->inlineScript()->captureEnd();
-
 
138
 
110
 
139
?>
111
?>
140
<section class="info-page">
112
<section class="info-page">
141
        <div class="container">
113
        <div class="container">
142
                <div class="row">