summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3aa200d)
raw | patch | inline | side by side (parent: 3aa200d)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 30 Apr 2010 13:47:31 +0000 (13:47 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 30 Apr 2010 13:47:31 +0000 (13:47 +0000) |
-Added a popup delay of 0.25 secs
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18001 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18001 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_baseSelector.inc | patch | blob | history | |
gosa-core/include/class_releaseSelector.inc | patch | blob | history |
index c50493162af27cc60504fe9c1d257aee30ca348b..0b26ffe0bbdda9f530448fe31c623eb7d1c6a110 100644 (file)
}
$link= "onclick=\"\$('bs_rebase_".$this->pid."').value='".base64_encode($config->current['BASE'])."'; $('submit_tree_base_".$this->pid."').click();\"";
- $this->tree= "<input type='text' size='35' name='bs_input_".$this->pid."' id='bs_input_".$this->pid."' onkeydown=\"\$('bs_".$this->pid."').hide()\" onfocus=\"\$('bs_".$this->pid."').hide()\" onmouseover=\"Element.clonePosition(\$('bs_".$this->pid."'), 'bs_input_".$this->pid."', {setHeight: false, setWidth: false, offsetTop:(Element.getHeight('bs_input_".$this->pid."'))});
- Element.show.delay(0.25,\$('bs_".$this->pid."'));\" onmouseout=\"rtimer= Element.hide.delay(0.25, 'bs_".$this->pid."')\" value=\"".preg_replace('/"/', '"',$this->pathMapping[$this->base])."\">";
+
+
+ $this->tree= "<input style='width:160px' type='text' size='35'
+ name='bs_input_{$this->pid}' id='bs_input_{$this->pid}'
+
+ onkeydown=\" \$('bs_{$this->pid}').hide(); \"
+ onfocus=\" \$('bs_{$this->pid}').hide(); \"
+ onmouseover=\" mouseIsStillOver = true;
+ function showIt()
+ {
+ if(mouseIsStillOver){
+ \$('bs_".$this->pid."').show();
+ }
+ };
+ Element.clonePosition(\$('bs_".$this->pid."'),
+ 'bs_input_".$this->pid."',
+ {setHeight: false, setWidth: false, offsetTop:(Element.getHeight('bs_input_".$this->pid."'))});
+ rtimer=showIt.delay(0.25); \"
+
+ onmouseout=\" mouseIsStillOver=false;
+ rtimer=Element.hide.delay(0.25,'bs_".$this->pid."')\"
+
+ value=\"".preg_replace('/"/','"',$this->pathMapping[$this->base])."\">";
+
// Autocompleter
$this->tree.= "<div id='autocomplete_".$this->pid."' class='autocomplete'></div>".
diff --git a/gosa-core/include/class_releaseSelector.inc b/gosa-core/include/class_releaseSelector.inc
index 17f0e7200bd406039252590a8f4b7461cfadea53..28f86dec83beca007ac4f5ce1d5b597a5b23b4c8 100644 (file)
$link= "onclick=\"\$('bs_rebase_".$this->pid."').value='".base64_encode($this->releaseBase)."';
$('submit_tree_base_".$this->pid."').click();\"";
- $this->tree= "<input
- style='width:160px'
- type='text'
- size='35'
- name='bs_input_{$this->pid}'
- id='bs_input_{$this->pid}'
+ $this->tree= "<input style='width:160px' type='text' size='35'
+ name='bs_input_{$this->pid}' id='bs_input_{$this->pid}'
onkeydown=\" \$('bs_{$this->pid}').hide(); \"
onfocus=\" \$('bs_{$this->pid}').hide(); \"
- onmouseover=\" Element.clonePosition(\$('bs_".$this->pid."'),
+ onmouseover=\" mouseIsStillOver = true;
+ function showIt()
+ {
+ if(mouseIsStillOver){
+ \$('bs_".$this->pid."').show();
+ }
+ };
+ Element.clonePosition(\$('bs_".$this->pid."'),
'bs_input_".$this->pid."',
{setHeight: false, setWidth: false, offsetTop:(Element.getHeight('bs_input_".$this->pid."'))});
- \$('bs_".$this->pid."').show(); \"
+ rtimer=showIt.delay(0.25); \"
- onmouseout=\" rtimer=Element.hide.delay(0.25,'bs_".$this->pid."')\"
+ onmouseout=\" mouseIsStillOver=false;
+ rtimer=Element.hide.delay(0.25,'bs_".$this->pid."')\"
value=\"".preg_replace('/"/','"',$this->pathMapping[$this->base])."\">";
// Autocompleter
$this->tree.= "<div id='autocomplete_".$this->pid."' class='autocomplete'></div>".
"<script type='text/javascript'>".
+ "var mouseIsStillOver = false;".
"new Ajax.Autocompleter('bs_input_".$this->pid."', 'autocomplete_".$this->pid."', 'autocomplete.php?type=base', { minChars: 3, frequency: 0.5 });";
if ($this->submitButton) {
$this->tree.= "$('bs_input_".$this->pid."').observe('keypress', function(event) { if(event.keyCode == Event.KEY_RETURN) { $('submit_base_".$this->pid."').click(); } });";