From: <je...@us...> - 2006-10-09 17:42:53
|
Revision: 14732 http://svn.sourceforge.net/gallery/?rev=14732&view=rev Author: jenst Date: 2006-10-09 10:42:37 -0700 (Mon, 09 Oct 2006) Log Message: ----------- 2006-10-09 Jens Tkotz <je...@pe...> 1.6-svn-b18 * Fix: Code and CSS adjustments to new yui! version. Modified Paths: -------------- trunk/gallery/ChangeLog trunk/gallery/Version.php trunk/gallery/css/base.css.default trunk/gallery/css/screen.css.default trunk/gallery/lib/content.php trunk/gallery/skins/bars002/css/screen.css.default trunk/gallery/skins/black/css/screen.css.default trunk/gallery/skins/jenskin/css/screen.css.default Modified: trunk/gallery/ChangeLog =================================================================== --- trunk/gallery/ChangeLog 2006-10-09 17:13:57 UTC (rev 14731) +++ trunk/gallery/ChangeLog 2006-10-09 17:42:37 UTC (rev 14732) @@ -1,3 +1,7 @@ +2006-10-09 Jens Tkotz <je...@pe...> 1.6-svn-b18 + + * Fix: Code and CSS adjustments to new yui! version. + 2006-10-03 Jens Tkotz <je...@pe...> 1.6-svn-b17 * Update: yahoo! yui -> 0.11.4 Modified: trunk/gallery/Version.php =================================================================== --- trunk/gallery/Version.php 2006-10-09 17:13:57 UTC (rev 14731) +++ trunk/gallery/Version.php 2006-10-09 17:42:37 UTC (rev 14732) @@ -22,7 +22,7 @@ ?> <?php -$gallery->version = '1.6-svn-b17'; +$gallery->version = '1.6-svn-b18'; $gallery->config_version = 98; $gallery->album_version = 38; $gallery->user_version = 6; Modified: trunk/gallery/css/base.css.default =================================================================== --- trunk/gallery/css/base.css.default 2006-10-09 17:13:57 UTC (rev 14731) +++ trunk/gallery/css/base.css.default 2006-10-09 17:42:37 UTC (rev 14732) @@ -343,50 +343,63 @@ } /******************** Begin autocomplete ********************/ + /* set width of widget here*/ .YUIsearchdiv { position: relative; + + z-index: 9001; /* for IE z-index of absolute divs inside relative divs issue */ } .YUIsearchinput { position: relative; display: block; } +/* For border edit .yui-ac-content class */ .YUIsearchcontainer { - position: relative; - bottom: 4px; right: 4px; + position: absolute; + top: 1.7em; + width: 100%; +} + +.YUIsearchcontainer .yui-ac-content { + position: absolute; + width: 100%; border: 1px solid #404040; background: #fff; - font-size: 90%; overflow: hidden; - display: none; + z-index: 9050; } +.YUIsearchcontainer .yui-ac-shadow { + position: absolute; + margin: 5px; + width: 100%; + background: #dcdcdc; + z-index:9049; +} + +/* The inner list */ .YUIsearchcontainer ul { - position: relative; + margin: 2px 0; + padding: 0; + list-style: none ; width: 100%; - padding: 0; - margin: 0; - list-style: none; } +/* The matching lines */ .YUIsearchcontainer li { - padding: 0 5px; + cursor: pointer; white-space: nowrap; - display: list-item; } -.YUIsearchcontainer li.highlight { +.YUIsearchcontainer li.yui-ac-highlight { background: #a0a0a0; } -.YUIsearchshadow { - position: absolute; - margin: .3em; - z-index: 5; - background: #a0a0a0; -} +/******************** End autocomplete *********************/ + .g-setup-block, .g-setup-fields { width: 100%; margin-bottom: 10px; Modified: trunk/gallery/css/screen.css.default =================================================================== --- trunk/gallery/css/screen.css.default 2006-10-09 17:13:57 UTC (rev 14731) +++ trunk/gallery/css/screen.css.default 2006-10-09 17:42:37 UTC (rev 14732) @@ -771,14 +771,16 @@ border: 1px solid red; } -/******************** Begin autocomplete ********************/ -.YUIsearchcontainer { +/******************* Begin autocomplete ********************/ + +.YUIsearchcontainer .yui-ac-content { border: 1px solid #404040; font-size: 85%; } -.YUIsearchcontainer li.highlight { +.YUIsearchcontainer li.yui-ac-highlight { background: #99f; font-weight: bold; } +/******************** End autocomplete *********************/ \ No newline at end of file Modified: trunk/gallery/lib/content.php =================================================================== --- trunk/gallery/lib/content.php 2006-10-09 17:13:57 UTC (rev 14731) +++ trunk/gallery/lib/content.php 2006-10-09 17:42:37 UTC (rev 14732) @@ -1373,6 +1373,7 @@ /** * Returns the HTML code for loading YUI autocomplete Javascript + * * @return $html string * @author Jens Tkotz <je...@pe... */ @@ -1391,7 +1392,7 @@ <script type="text/javascript" src="' . $baseUrl . '/js/yui/connection-min.js"></script> <!-- OPTIONAL: Animation (required only if enabling animation) --> - <script type="text/javascript" src="' . $baseUrlL . '/js/yui/animation-min.js"></script> + <script type="text/javascript" src="' . $baseUrl . '/js/yui/animation-min.js"></script> <!-- Source file --> <script type="text/javascript" src="' . $baseUrl . '/js/yui/autocomplete-min.js"></script> @@ -1400,26 +1401,27 @@ return $html; } + /** * Returns the HTML/Javascript code that initializes an autocomplete field - * if 3rd param is false, then just an input field is returned. + * if 4th param is false, then just an input field is returned. * - * @param $label string descriptive Text - * @param $inputName string name of the input field - * @param $id string id of the input field - * @return $html string + * @param string $label descriptive Text + * @param string $inputName name of the input field + * @param string $id id of the input field + * @return string $html Output * @author Jens Tkotz <je...@pe...> */ -function initAutocompleteJS ($label, $inputName, $id, $enableAutocomplete, $disabled = false) { +function initAutocompleteJS ($label, $inputName, $id, $enableAutocomplete = false, $disabled = false) { global $gallery; $disable = ($disabled) ? ' disabled' : ''; $html = " <div class=\"YUIsearchdiv right5 floatleft\">$label - <input name=\"$inputName\" id=\"$id\" class=\"YUIsearchinput\" type=\"text\" size=\"75\"$disable> - <div class=\"YUIsearchshadow\"><div id=\"${id}_container\" class=\"YUIsearchcontainer\"></div></div> - </div> + <input name=\"$inputName\" id=\"$id\" class=\"YUIsearchinput\" type=\"text\" size=\"75\"$disable> + <div id=\"${id}_container\" class=\"YUIsearchcontainer\"></div> + </div> "; if($enableAutocomplete) { @@ -1434,6 +1436,7 @@ oAutoComp = new YAHOO.widget.AutoComplete(\''. $id .'\',\''. $id .'_container\', oACDS); oAutoComp.queryDelay = 0; oAutoComp.typeAhead = true; + oAutoComp0.useShadow = true; </script>'; } Modified: trunk/gallery/skins/bars002/css/screen.css.default =================================================================== --- trunk/gallery/skins/bars002/css/screen.css.default 2006-10-09 17:13:57 UTC (rev 14731) +++ trunk/gallery/skins/bars002/css/screen.css.default 2006-10-09 17:42:37 UTC (rev 14732) @@ -800,15 +800,4 @@ .g-config-main div.g-desc-cell { border: 1px solid red; -} - -/******************** Begin autocomplete ********************/ -.YUIsearchcontainer { - border: 1px solid #404040; - font-size: 85%; -} - -.YUIsearchcontainer li.highlight { - background: #99f; - font-weight: bold; -} +} \ No newline at end of file Modified: trunk/gallery/skins/black/css/screen.css.default =================================================================== --- trunk/gallery/skins/black/css/screen.css.default 2006-10-09 17:13:57 UTC (rev 14731) +++ trunk/gallery/skins/black/css/screen.css.default 2006-10-09 17:42:37 UTC (rev 14732) @@ -821,17 +821,6 @@ color: #aaa; } -/******************** Begin autocomplete ********************/ -.YUIsearchcontainer { - border: 1px solid #404040; - font-size: 85%; -} - -.YUIsearchcontainer li.highlight { - background: #99f; - font-weight: bold; -} - /* Overrides base.css */ .g-siriux a img { @@ -840,4 +829,4 @@ .g-siriux a:hover img{ border: 2px solid #fff; -} \ No newline at end of file +} Modified: trunk/gallery/skins/jenskin/css/screen.css.default =================================================================== --- trunk/gallery/skins/jenskin/css/screen.css.default 2006-10-09 17:13:57 UTC (rev 14731) +++ trunk/gallery/skins/jenskin/css/screen.css.default 2006-10-09 17:42:37 UTC (rev 14732) @@ -780,17 +780,6 @@ color: #aaa; } -/******************** Begin autocomplete ********************/ -.YUIsearchcontainer { - border: 1px solid #404040; - font-size: 85%; -} - -.YUIsearchcontainer li.highlight { - background: #99f; - font-weight: bold; -} - /* Overrides base.css */ .g-siriux a img { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |