Changeset 1462
- Timestamp:
- May 10, 2016, 1:41:08 PM (5 years ago)
- Location:
- admin-center-lliurex-apt/trunk/fuentes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
admin-center-lliurex-apt/trunk/fuentes/admin-center-lliurex-apt-module.install/usr/share/admin-center/modules/lliurex-apt/src/js/main.js
r1456 r1462 267 267 }//hem d'esborar la darrera linia 268 268 var nouHtml = lliurexPare.creaCheckBoxRepositorisPropis(lliurexPare.repositorisPropis); 269 $('#lliurex-apt_repositorisPropis').html(nouHtml); 269 $('#lliurex-apt_repositorisPropis').html(nouHtml); 270 $.material.init(); 270 271 }); 271 272 } … … 326 327 checked ='checked'; 327 328 } 328 html +="<div id='lliurex-apt_botonsRepositori_"+i+"' class='checkbox' ><label><input type='checkbox' onClick='lliurexapt_LAI.gestionaPropis("+i+")'><span class='checkbox-material'>< span class='check'></span></span> "+_propis[i].nom+"</input></label></div>";329 html +="<div id='lliurex-apt_botonsRepositori_"+i+"' class='checkbox' ><label><input type='checkbox' onClick='lliurexapt_LAI.gestionaPropis("+i+")'><span class='checkbox-material'></span> "+_propis[i].nom+"</input></label></div>"; 329 330 } 330 331 html +="</div>"; … … 348 349 } 349 350 lliurexApt.prototype.mostrarOpcions = function(){ 350 var html =" <div class='form-group' >";351 var html =" <div class='form-group' id = 'lliurex-apt_botonsAmagats'>"; 351 352 if (!this.visibleLocals){ 352 353 html+="<div id='lliurex-apt_botonsLocalOpcio' class='checkbox' ><label><input type='checkbox' class='styled' onClick='lliurexapt_LAI.visible('Local')' ></input>"+this.idioma.repositorisLocals+"</label></div>"; … … 367 368 }, 368 369 ], 369 onshown: function(){ $.material.init();} 370 onshown: function(){ $.material.init('#lliurex-apt_botonsAmagats'); 371 } 370 372 }); 371 373 } … … 529 531 lliurexapt_LAI = new lliurexApt(); 530 532 lliurexapt_LAI.init(); 531 $.material.init(); 533 $.material.init(); 532 534 }); 535 /*$.material.checkbox = function(selector) { 536 // Add fake-checkbox to material checkboxes 537 $((selector) ? selector : this.options.togglebuttonElements) 538 .filter(":notmdproc") 539 .filter(function(){ //added this filter to skip checkboxes that were already initialized 540 return $(this).parent().find(".toggle").length === 0; 541 }) 542 .data("mdproc", true) 543 .after("<span class=toggle></span>"); 544 };*/ -
admin-center-lliurex-apt/trunk/fuentes/debian/changelog
r1457 r1462 1 admin-center-lliurex-apt (0.1.3) UNRELEASED; urgency=medium 2 3 * Fixed duplicated material checkboxes 4 5 -- Vicent Fernandez i Capilla <vfernandezc@llx-vfernandez.edu.gva.es> Tue, 10 May 2016 13:40:35 +0200 6 1 7 admin-center-lliurex-apt (0.1.2) xenial; urgency=medium 2 8
Note: See TracChangeset
for help on using the changeset viewer.