Changeset 6522
- Timestamp:
- Dec 19, 2017, 2:50:20 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lmd/trunk/fuentes/admin-center-ltsp.install/modul/lliurex-ltsp/src/js/imageManager.js
r6519 r6522 1493 1493 }); 1494 1494 1495 var isoicon = document.getElementById('isouploadicon'); 1496 var isofileInput = document.getElementById('llx_ltsp_new_image_iso'); 1497 var isolabel = document.getElementById('isouploadlabel'); 1498 1499 fileInput.addEventListener('change', function(){ 1500 var str = isofileInput.value; 1501 var i; 1502 if (str.lastIndexOf('\\')) { 1503 i = str.lastIndexOf('\\') + 1; 1504 } else if (str.lastIndexOf('/')) { 1505 i = str.lastIndexOf('/') + 1; 1506 } 1507 isolabel.value = str.slice(i, str.length); 1508 if ( ! isoicon.classList.contains('hide')){ 1509 isoicon.classList.addClass('hide'); 1510 } 1511 if ( ! isolabel.classList.contains('hide')){ 1512 isolabel.classList.remove('hide'); 1513 } 1514 }); 1515 1516 1517 1495 1518 $("#llx_ltsp_lliurex_from_iso").on("click", function(){ 1496 1519 $(".llx_ltsp_template_div, #llx_ltsp_lliurex_minimal_image").removeClass("llx_ltsp_template_div_selected");
Note: See TracChangeset
for help on using the changeset viewer.