Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| (Yhtä välissä olevaa versiota samalta käyttäjältä ei näytetä) | |||
| Rivi 4: | Rivi 4: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
function <!--{$id|escape:'quotes'}--> | function <!--{$id|escape:'quotes'}-->_func() { | ||
var id = "<!--{$id|escape:'quotes'}-->"; | var id = "<!--{$id|escape:'quotes'}-->"; | ||
var button = '<div class="Jw-PopupMenu_button" id="' + id + '_button" style="float: right; width: 24px; height: 24px; background-color: #ffffff; opacity: 0.8; border: 1px solid #999999; border-radius: 5px; cursor: pointer;"><table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0"><tr><td valign="middle" align="center" style="font-size: 14px; font-weight: bold;">Ξ</td></tr></table></div>'; | var button = '<div class="Jw-PopupMenu_button" id="' + id + '_button" style="float: right; width: 24px; height: 24px; background-color: #ffffff; opacity: 0.8; border: 1px solid #999999; border-radius: 5px; cursor: pointer;"><table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0"><tr><td valign="middle" align="center" style="font-size: 14px; font-weight: bold;">Ξ</td></tr></table></div>'; | ||
jQuery('#' + id + '_container').append(button); | jQuery('#' + id + '_container').append(button); | ||
jQuery('#' + id + '_content').css('position', 'absolute'); | jQuery('#' + id + '_content').css('position', 'absolute'); | ||
| Rivi 38: | Rivi 30: | ||
} | } | ||
function <!--{$id|default:popupmenu|escape:'html'}-->_jQueryTest() { | |||
if ( typeof window.jQuery == 'undefined' ) { | |||
setTimeout( function(){ <!--{$id|default:popupmenu|escape:'html'}-->_jQueryTest() }, 300); | |||
} else { | |||
<!--{$id|default:popupmenu|escape:'html'}-->_func(); | |||
} | |||
} | |||
setTimeout( function(){ <!--{$id|default:popupmenu|escape:'html'}-->_jQueryTest() }, 300 ); | |||
</script> | </script> | ||
</includeonly> | </includeonly> | ||


