Manager: nice skin change feature
This commit is contained in:
parent
953806ed93
commit
67124c6bff
|
@ -65,6 +65,7 @@ example/skins/default/images/ui-icons_228ef1_256x240.png
|
||||||
example/skins/default/images/ui-icons_ef8c08_256x240.png
|
example/skins/default/images/ui-icons_ef8c08_256x240.png
|
||||||
example/skins/default/images/ui-icons_ffd27a_256x240.png
|
example/skins/default/images/ui-icons_ffd27a_256x240.png
|
||||||
example/skins/default/images/ui-icons_ffffff_256x240.png
|
example/skins/default/images/ui-icons_ffffff_256x240.png
|
||||||
|
example/skins/default/impact.png
|
||||||
example/skins/default/information.png
|
example/skins/default/information.png
|
||||||
example/skins/default/jquery-1.3.2.min.js
|
example/skins/default/jquery-1.3.2.min.js
|
||||||
example/skins/default/jquery-ui-1.7.2.custom.css
|
example/skins/default/jquery-ui-1.7.2.custom.css
|
||||||
|
@ -85,6 +86,7 @@ example/skins/default/minus.gif
|
||||||
example/skins/default/page_add.png
|
example/skins/default/page_add.png
|
||||||
example/skins/default/page_delete.png
|
example/skins/default/page_delete.png
|
||||||
example/skins/default/page_edit.png
|
example/skins/default/page_edit.png
|
||||||
|
example/skins/default/pastel.png
|
||||||
example/skins/default/plus.gif
|
example/skins/default/plus.gif
|
||||||
example/skins/default/root.gif
|
example/skins/default/root.gif
|
||||||
example/skins/default/spacer.gif
|
example/skins/default/spacer.gif
|
||||||
|
|
BIN
modules/lemonldap-ng-manager/example/skins/default/impact.png
Normal file
BIN
modules/lemonldap-ng-manager/example/skins/default/impact.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.0 KiB |
|
@ -373,6 +373,20 @@ function passworddbParams(id) {
|
||||||
],lmdata(id));
|
],lmdata(id));
|
||||||
display('authParams',lmtext(id));
|
display('authParams',lmtext(id));
|
||||||
}
|
}
|
||||||
|
function skinSelect(id) {
|
||||||
|
currentId=id;
|
||||||
|
formateSelect('skinText',[
|
||||||
|
'pastel=Pastel',
|
||||||
|
'impact=Impact',
|
||||||
|
],lmdata(id));
|
||||||
|
changeSkinImage(lmdata(id));
|
||||||
|
display('skin',lmtext(id));
|
||||||
|
}
|
||||||
|
function changeSkinImage(skin) {
|
||||||
|
var imgsrc = imagepath + skin + '.png';
|
||||||
|
$('#content_skin>img').attr('src', imgsrc);
|
||||||
|
$('#content_skin>img').attr('alt', skin);
|
||||||
|
}
|
||||||
function btext(id) {
|
function btext(id) {
|
||||||
currentId=id;
|
currentId=id;
|
||||||
$('#btextKey').attr('value',lmtext(id));
|
$('#btextKey').attr('value',lmtext(id));
|
||||||
|
|
|
@ -261,6 +261,17 @@
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Skin -->
|
||||||
|
<div id="content_skin" class="hidden">
|
||||||
|
<img src="" alt="" />
|
||||||
|
<br />
|
||||||
|
<select id="skinText" onchange="changeSkinImage(this.value);return false;"></select>
|
||||||
|
<br />
|
||||||
|
<button onclick="setlminputdata(currentId,skinText);return false;" class="ui-state-default ui-corner-all">
|
||||||
|
<lang en="Apply" fr="Appliquer" />
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Vhost -->
|
<!-- Vhost -->
|
||||||
<div id="content_vhost" class="hidden">
|
<div id="content_vhost" class="hidden">
|
||||||
<input type="text" id="vhost" />
|
<input type="text" id="vhost" />
|
||||||
|
|
BIN
modules/lemonldap-ng-manager/example/skins/default/pastel.png
Normal file
BIN
modules/lemonldap-ng-manager/example/skins/default/pastel.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.2 KiB |
|
@ -128,7 +128,7 @@ sub struct {
|
||||||
qw(portalSkin portalAutocomplete portalRequireOldPassword portalUserAttr portalOpenLinkInNewWindow)
|
qw(portalSkin portalAutocomplete portalRequireOldPassword portalUserAttr portalOpenLinkInNewWindow)
|
||||||
],
|
],
|
||||||
|
|
||||||
portalSkin => 'text:/portalSkin',
|
portalSkin => 'text:/portalSkin:portalParams:skinSelect',
|
||||||
portalAutocomplete => 'bool:/portalAutocomplete',
|
portalAutocomplete => 'bool:/portalAutocomplete',
|
||||||
portalRequireOldPassword =>
|
portalRequireOldPassword =>
|
||||||
'bool:/portalRequireOldPassword',
|
'bool:/portalRequireOldPassword',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user