зеркало из https://github.com/mozilla/pjs.git
fix for bugscape 5057 - split up the preferences apply themes function so we can override it in the commercial build
work done by pchen@netscape.com r=matt@netscape.com sr=alecf@netscape.com
This commit is contained in:
Родитель
277b5d0fd0
Коммит
a93e109cbf
|
@ -24,6 +24,7 @@ comm.jar:
|
|||
content/communicator/pref/pref-colors.xul (prefwindow/resources/content/pref-colors.xul)
|
||||
content/communicator/pref/pref-themes.xul (prefwindow/resources/content/pref-themes.xul)
|
||||
content/communicator/pref/pref-themes.js (prefwindow/resources/content/pref-themes.js)
|
||||
content/communicator/pref/pref-themes-apply.js (prefwindow/resources/content/pref-themes.js)
|
||||
content/communicator/pref/pref-charset.js (prefwindow/resources/content/pref-charset.js)
|
||||
content/communicator/pref/pref-charset.xul (prefwindow/resources/content/pref-charset.xul)
|
||||
content/communicator/pref/pref-debug.xul (prefwindow/resources/content/pref-debug.xul)
|
||||
|
|
|
@ -26,17 +26,6 @@ function Startup()
|
|||
tree.selectItem(theSkinKids.firstChild);
|
||||
}
|
||||
|
||||
function applySkin()
|
||||
{
|
||||
var tree = document.getElementById( "skinsTree" );
|
||||
var selectedSkinItem = tree.selectedItems[0];
|
||||
var skinName = selectedSkinItem.getAttribute( "name" );
|
||||
if (!chromeRegistry.isSkinSelected(skinName, DEBUG_USE_PROFILE)) {
|
||||
chromeRegistry.selectSkin( skinName, DEBUG_USE_PROFILE );
|
||||
chromeRegistry.refreshSkins();
|
||||
}
|
||||
}
|
||||
|
||||
function deselectSkin()
|
||||
{
|
||||
var tree = document.getElementById( "skinsTree" );
|
||||
|
|
|
@ -42,6 +42,7 @@
|
|||
src="chrome://global/locale/brand.properties"/>
|
||||
|
||||
<script type="application/x-javascript" src="chrome://communicator/content/pref/pref-themes.js"/>
|
||||
<script type="application/x-javascript" src="chrome://communicator/content/pref/pref-themes-apply.js"/>
|
||||
|
||||
<box class="box-smallheader" title="&lHeader;"/>
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче