Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 1023 Rev 1024
Línea 262... Línea 262...
262
    });
262
    });
263
    /**
263
    /**
264
     * Clicked edit section
264
     * Clicked edit section
265
     */
265
     */
Línea 266... Línea -...
266
 
-
 
267
    $(".btn-edit-section").on('click', function(event){
-
 
268
    console.log(0)
-
 
269
});
-
 
270
 
-
 
271
$(".btn-edit-section").click(function(){
-
 
272
    console.log(1)
-
 
273
});
-
 
Línea 274... Línea -...
274
 
-
 
275
   
-
 
276
 
266
 
277
    /**
-
 
278
     * Clicked edit section
-
 
279
     */
-
 
280
    $('button.btn-delete-section').click(function(e) {
-
 
281
        var id = $(this).data('section');
-
 
282
        bootbox.confirm({
-
 
283
            title: "LABEL_DELETE LABEL_CONDUCT",
-
 
284
            message: "LABEL_QUESTION_DELETE",
-
 
285
            buttons: {
-
 
286
                cancel: {
-
 
287
                    label: '<i class="fa fa-times"></i> LABEL_CANCEL'
-
 
288
                },
-
 
289
                confirm: {
-
 
290
                    label: '<i class="fa fa-check"></i> LABEL_ACCEPT'
-
 
291
                }
-
 
292
            },
-
 
293
            callback: function(result) {
-
 
294
                if (result) {
-
 
295
                    removeSection(id);
-
 
296
                }
-
 
Línea 297... Línea 267...
297
            }
267
   
298
        });
268
 
299
    });
269
   
Línea 333... Línea 303...
333
    });
303
    });
Línea 334... Línea 304...
334
 
304
 
335
    /**
305
    /**
336
     * Clicked remove section
306
     * Clicked remove section
337
     */
307
     */
338
    $('#btn-delete-section').click(function(e) {
308
    $('.btn-delete-section').click(function(e) {
339
        var id = $(this).data('section');
309
        var id = $(this).data('section');
340
        bootbox.confirm({
310
        bootbox.confirm({
341
            title: "LABEL_DELETE LABEL_SECTION",
311
            title: "LABEL_DELETE LABEL_SECTION",
342
            message: "LABEL_SECTION_DELETE",
312
            message: "LABEL_SECTION_DELETE",
Línea 353... Línea 323...
353
              
323
              
354
                }
324
                }
355
            }
325
            }
356
        });
326
        });
-
 
327
    });
-
 
328
 
-
 
329
    $(".btn-edit-section").click(function(){
-
 
330
    console.log(1);
-
 
331
});
Línea 357... Línea 332...
357
    });
332
 
358
    
333
    
359
    /**
334
    /**
360
     * Clicked new Form
335
     * Clicked new Form
Línea 393... Línea 368...
393
        $('#form-main').submit();
368
        $('#form-main').submit();
394
    });
369
    });
Línea 395... Línea 370...
395
 
370
 
396
 
-
 
397
    /**
-
 
398
     * Clicked save and close new/edit Form
-
 
399
     */
-
 
400
    $('#btn-save-section').click(function(e) {
-
 
401
        
-
 
402
    });
-
 
403
 
-
 
404
 
-
 
405
 
371
 
406
    /**
372
    /**
407
     * Remove Html Tags
373
     * Remove Html Tags
408
     */
374
     */
409
    const removeTags = (str) => str.toString().replace( /(<([^>]+)>)/ig, '')
375
    const removeTags = (str) => str.toString().replace( /(<([^>]+)>)/ig, '')