Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16778 Rev 16779
Línea 159... Línea 159...
159
    };
159
    };
Línea 160... Línea 160...
160
 
160
 
Línea -... Línea 161...
-
 
161
    $.groupSortable = null;
-
 
162
 
161
    $.groupSortable = null;
163
 
Línea 162... Línea 164...
162
 
164
 
163
 
165
 
Línea 164... Línea 166...
164
    $.fn.setGroupSortable = function(html) {
166
    $.fn.setGroupSortable = function(html) {
165
 
167
 
166
        $('#ol-jobs-descriptions').html(html);
168
        $('#ol-jobs-descriptions').html(html);
167
        $.groupSortable =  $('#ol-jobs-descriptions').sortable({
169
        $.groupSortable =  $('#ol-jobs-descriptions').sortable({
168
 
170
 
-
 
171
            onDragStart: function(\$item, container, _super) {
169
            onDragStart: function(\$item, container, _super) {
172
                //\$item.find('ol.dropdown-menu').sortable('disable');
170
                //\$item.find('ol.dropdown-menu').sortable('disable');
173
                _super(\$item, container);
171
                _super(\$item, container);
174
            },
172
            },
175
            onDrop: function(\$item, container, _super) {
173
            onDrop: function(\$item, container, _super) {
176
 
174
                var data = $.groupSortable.sortable('serialize').get();
177
                var data = $.groupSortable.sortable('serialize').get();
175
                var jsonString = JSON.stringify(data, null, ' ');
178
                var jsonString = JSON.stringify(data, null, ' ');
176
/*
179
 
Línea 188... Línea 191...
188
                    if (!response['success']) {
191
                    if (!response['success']) {
189
                        $.fn.showError(response['data']);
192
                        $.fn.showError(response['data']);
190
                    }
193
                    }
191
                }).fail(function(jqXHR, textStatus, errorThrown) {
194
                }).fail(function(jqXHR, textStatus, errorThrown) {
192
                    $.fn.showError(textStatus);
195
                    $.fn.showError(textStatus);
193
                })*/
196
                })
Línea 194... Línea 197...
194
 
197
 
195
 
198
 
Línea 710... Línea 713...
710
            <div class="col-12">
713
            <div class="col-12">
711
                <div class="card">
714
                <div class="card">
712
                    <div class="card-body">
715
                    <div class="card-body">
Línea 713... Línea 716...
713
 
716
 
714
                   	  <div id="divNoRecordsAvailable" class="text-center" style="display: none"><h3>LABEL_NO_RECORDS_AVAILABLE</h3></div>
-
 
715
                        
-
 
-
 
717
                   	  <div id="divNoRecordsAvailable" class="text-center" style="display: none"><h3>LABEL_NO_RECORDS_AVAILABLE</h3></div>
716
                        
718
                   	 <div id="ol-jobs-descriptions-container" style="background-color: rgba(0, 0, 0, .03); width: 100%; height: 600px; scroll: auto; overflow: auto;">
Línea 717... Línea 719...
717
                       <ol id="ol-jobs-descriptions" class="default vertical" style="padding-left: 0px;">
719
     					 <ol id="ol-jobs-descriptions" class="default vertical" style="padding-left: 0px;">
-
 
720
 
-
 
721
            			</ol>
-
 
722
            	
-
 
723
            		 </div>
Línea 718... Línea 724...
718
 
724
                        
719
            			</ol>
725
                 
720
            
726
            
721
                    </div>
727
                    </div>
Línea 996... Línea 1002...
996
   </div>
1002
   </div>
997
</div>
1003
</div>
998
</script>
1004
</script>
Línea 999... Línea 1005...
999
 
1005
 
-
 
1006
<script id="listJobDescriptionTemplate" type="text/x-jsrender">
-
 
1007
	<li data-id="{{:uuid}}" >
-
 
1008
        <div class="content">
-
 
1009
 
-
 
1010
 
1000
<script id="listJobDescriptionTemplate" type="text/x-jsrender">
1011
 
-
 
1012
        <div class="sidebar {{if status == '<?php echo JobDescription::STATUS_INACTIVE ?>' }} sidebar-inactive {{/if}}">
1001
	<li data-id="{{:uuid}}" {{if status == '<?php echo JobDescription::STATUS_INACTIVE ?>' }} class="inactive" {{/if}}>
1013
 
1002
        {{>name}} 
1014
        {{>name}} 
1003
        <div class="float-right">
1015
        <div class="float-right right-sidebar">
1004
            {{if status == '<?php echo JobDescription::STATUS_ACTIVE ?>' }} 
1016
            {{if status == '<?php echo JobDescription::STATUS_ACTIVE ?>' }} 
1005
            {{if link_add }}
1017
            {{if link_add }}
1006
            <i class="fa fa-plus btn-add-job-description" data-link="{{:link_add}}"></i>&nbsp;
1018
            <i class="fa fa-plus btn-add-job-description" data-link="{{:link_add}}"></i>&nbsp;
1007
            {{/if}}
1019
            {{/if}}
Línea 1016... Línea 1028...
1016
            {{if link_report }}
1028
            {{if link_report }}
1017
            <i class="fa fa-file-o btn-pdf-job-description" data-link="{{:link_report}}"></i>&nbsp;
1029
            <i class="fa fa-file-o btn-pdf-job-description" data-link="{{:link_report}}"></i>&nbsp;
1018
            {{/if}}
1030
            {{/if}}
1019
            {{/if}}
1031
            {{/if}}
1020
        </div>
1032
        </div>
-
 
1033
        </div>
-
 
1034
        </div>
1021
        <ol>	
1035
        <ol>	
1022
	   {{for children tmpl="#listJobDescriptionTemplate"/}}
1036
	   {{for children tmpl="#listJobDescriptionTemplate"/}}
1023
	   </ol> 
1037
	   </ol> 
1024
	</li>
1038
	</li>
1025
</script>
1039
</script>