X-Git-Url: https://scm.cri.minesparis.psl.eu/git/Plinn.git/blobdiff_plain/3e0a2c257d49fb162da9c70d2f70194036235166..959d888c17d1403d2eeecc19bc4b5e2c8d1debf6:/skins/ajax_scripts/palette.js diff --git a/skins/ajax_scripts/palette.js b/skins/ajax_scripts/palette.js deleted file mode 100644 index d82925a..0000000 --- a/skins/ajax_scripts/palette.js +++ /dev/null @@ -1,55 +0,0 @@ -// (c) Benoît PIN 2006 -// http://plinn.org -// Licence GPL -// $Id: palette.js 1315 2008-07-29 15:36:15Z pin $ -// $URL: http://svn.cri.ensmp.fr/svn/Plinn/branches/CMF-2.1/skins/ajax_scripts/palette.js $ - - -function InspectorPalette(baseUrl, toggleButton, contentNode, onExpand, onCollapse) { - var thisInspector = this; - this._preloadImages(); - this.baseUrl = baseUrl; - this.toggleButton = toggleButton; - this.toggleButton.src = baseUrl + '/collapsedPalette.gif'; - this.contentNode = contentNode; - this.expanded = false; - this.onExpand = onExpand ? onExpand : function(){thisInspector.contentNode.innerHTML='expanded';}; - this.onCollapse = onCollapse ? onCollapse : function(){thisInspector.contentNode.innerHTML='collapsed';}; - - toggleButton.onclick = function(evt) { - if (thisInspector.expanded) - thisInspector.collapse(); - else - thisInspector.expand(); - disableDefault(evt); - disablePropagation(evt); - }; -} - -InspectorPalette.prototype._preloadImages = function() { - var images = ['expandPalette.gif', 'collapsePalette.gif', 'expandedPalette.gif', 'collapsedPalette.gif' ], img; - for (var i=0 ; i