Changeset 3160 for admin-center/trunk/fuentes/admin-center.install/usr
- Timestamp:
- Dec 22, 2016, 8:40:07 PM (3 years ago)
- Location:
- admin-center/trunk/fuentes/admin-center.install/usr/share/admin-center
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
admin-center/trunk/fuentes/admin-center.install/usr/share/admin-center/css/main.css
r3064 r3160 76 76 width: 100%; 77 77 z-index: -9999999; 78 background-image: url(img/AdminCenterTopBanner.png); */78 background-image: url(img/AdminCenterTopBanner.png); 79 79 background-repeat: no-repeat; 80 80 background-size: cover; 81 81 background-color: #fbc02d; 82 transition: all 0.2s; 82 83 } 83 84 .AdminCenterHeader{ … … 451 452 min-width: 610px; 452 453 overflow-y: auto !important; 454 453 455 } 454 456 -
admin-center/trunk/fuentes/admin-center.install/usr/share/admin-center/js/main.js
r3064 r3160 4 4 this.loadedModules=[]; 5 5 this.history=["info"]; 6 this.lastScrollTop=0; 6 7 7 8 … … 110 111 $("#"+target).show(); 111 112 //alert("Loading: "+target); 113 114 // Bind scroll event 115 $(".moduleWindow").on("scroll", function(ev){ 116 ev.stopPropagation(); 117 ev.preventDefault(); 118 119 var st = $(this).scrollTop(); 120 if (st > self.lastScrollTop){ 121 if ($(this).scrollTop()>0) 122 { 123 $("#AdminCenterTopBack").css("height", 50); 124 $("body").css("padding-top", 30); 125 $("#AdminCenterTopBack").css("filter", "opacity(0%)"); 126 $(".container").css("margin-bottom", 150); 127 } 128 } else { 129 if (($(this).scrollTop()<=50)) { 130 $("#AdminCenterTopBack").css("height", 250); 131 $("body").css("padding-top", 150); 132 $("#AdminCenterTopBack").css("filter", "opacity(100%)"); 133 $(".container").css("margin-bottom", 15); 134 } 135 } 136 self.lastScrollTop= st; 137 138 139 /*console.log($(this).scrollTop()); 140 console.log($(this).innerHeight()); 141 console.log($(this)[0].scrollHeight); 142 console.log(ev);*/ 143 }); 144 112 145 $.material.init(); 113 146 114 147 } 148 115 149 116 150 … … 313 347 $("#"+target).show(); 314 348 } 349 350 351 // Setting scroll to default values 352 $("#AdminCenterTopBack").css("height", 250); 353 $("body").css("padding-top", 150); 354 $("#AdminCenterTopBack").css("filter", "opacity(100%)"); 355 $(".container").css("margin-bottom", 15); 356 315 357 }); 316 358 … … 440 482 $("#AdminCenterFooter").css("height", 25); 441 483 }); 442 484 443 485 }); -
admin-center/trunk/fuentes/admin-center.install/usr/share/admin-center/lib/formFactory.js
r2834 r3160 4 4 } 5 5 6 formFactory.prototype.createSelect=function createSelect(item ){6 formFactory.prototype.createSelect=function createSelect(item, expanded_columns=false){ 7 7 8 8 var disabled=""; 9 9 if (item.disabled==="true") disabled=' disabled="disabled" '; 10 10 11 var left_col_size="col-md-2"; 12 var right_col_size="col-md-10"; 13 if (expanded_columns) { 14 left_col_size="col-md-4"; 15 right_col_size="col-md-6"; 16 } 17 11 18 var sel='<div class="form-group col-md-12" title="'+item.help+'" style="margin-top:30;">'; 12 sel+='<label for="'+item.id+'" class=" col-md-2control-label">'+item.label+'</label>';13 sel+='<div class=" col-md-10">';19 sel+='<label for="'+item.id+'" class="'+left_col_size+' control-label">'+item.label+'</label>'; 20 sel+='<div class="'+right_col_size+'">'; 14 21 sel+='<select id="'+item.id+'" class="form-control" '+disabled+'>'; 15 22 for (var i in item.options){ … … 23 30 }; 24 31 25 formFactory.prototype.createCheckbox=function createCheckbox(item){ 32 formFactory.prototype.createCheckbox=function createCheckbox(item, expanded_columns=false){ 33 var left_col_size="col-md-2"; 34 var right_col_size="col-md-10"; 35 if (expanded_columns) { 36 left_col_size="col-md-4"; 37 right_col_size="col-md-6"; 38 } 39 26 40 var checked=""; 27 41 var disabled=""; … … 29 43 if (item.disabled=="true") disabled=" disabled "; 30 44 var content='<div class="form-group col-md-12" title="'+item.help+'">'; 31 content+='<label class=" col-md-2control-label">';45 content+='<label class="'+left_col_size+' control-label">'; 32 46 content+=item.label+'</label>'; 33 content+='<div class=" col-md-10">';47 content+='<div class="'+right_col_size+'">'; 34 48 content+='<div class="checkbox"><label>'; 35 49 content+='<input type="checkbox" '+checked+' '+disabled+' name="'+item.id+'" id="'+item.id+'"/></label></div>'; … … 39 53 40 54 41 formFactory.prototype.createText=function createText(item){ 55 formFactory.prototype.createText=function createText(item, expanded_columns=false){ 56 var left_col_size="col-md-2"; 57 var right_col_size="col-md-10"; 58 if (expanded_columns) { 59 left_col_size="col-md-4"; 60 right_col_size="col-md-6"; 61 } 62 63 42 64 var disabled=""; 43 65 if (item.disabled==="true") disabled=' disabled="disabled" '; 44 66 45 67 var sel='<div class="form-group col-md-12" title="'+item.help+'" style="margin-top:30;">'; 46 sel+='<label for="'+item.id+'" class=" col-md-2control-label">'+item.label+'</label>';47 sel+='<div class=" col-md-10">';68 sel+='<label for="'+item.id+'" class="'+left_col_size+' control-label">'+item.label+'</label>'; 69 sel+='<div class="'+right_col_size+'">'; 48 70 sel+='<input id="'+item.id+'" class="form-control" type="text" value="'+item.value+'" '+disabled+'>'; 49 71 sel+="</input></div></div>"; … … 51 73 }; 52 74 53 formFactory.prototype.createTextArea=function createTextArea(item){ 75 formFactory.prototype.createTextArea=function createTextArea(item, expanded_columns=false){ 76 var left_col_size="col-md-2"; 77 var right_col_size="col-md-10"; 78 if (expanded_columns) { 79 left_col_size="col-md-4"; 80 right_col_size="col-md-6"; 81 } 82 54 83 var disabled=""; 55 84 if (item.disabled==="true") disabled=' disabled="disabled" '; 56 85 57 86 var sel='<div class="form-group col-md-12" title="'+item.help+'" style="margin-top:30;">'; 58 sel+='<label for="'+item.id+'" class=" col-md-2control-label">'+item.label+'</label>';59 sel+='<div class=" col-md-10">';87 sel+='<label for="'+item.id+'" class="'+left_col_size+' control-label">'+item.label+'</label>'; 88 sel+='<div class="'+right_col_size+'">'; 60 89 sel+='<textarea id="'+item.id+'" class="form-control" type="text" '+disabled+'>'+item.value; 61 90 sel+="</textarea></div></div>"; -
admin-center/trunk/fuentes/admin-center.install/usr/share/admin-center/lib/utils.js
r2960 r3160 12 12 this.formFactory=new formFactory(); 13 13 this.crypt=new JSEncrypt(); // Class to encrypt and decrypt keys 14 this.crypt.default_key_size=8192; 14 //this.crypt.default_key_size=8192; 15 this.crypt.default_key_size=2048; 15 16 16 17 this.showMarkDown=new showdown.Converter();
Note: See TracChangeset
for help on using the changeset viewer.