20 ) $maxLength = 20;
$pickListJSON = json_encode ( $pickList );
$js = << ')
.attr( 'tabIndex', -1 )
.attr( 'title', 'Show All Items' )
.button({
icons: { primary: 'ui-icon-triangle-1-s' },
text: false
})
.removeClass( 'ui-corner-all' )
.addClass( 'ui-corner-right ui-button-icon' )
.insertAfter ( $("$tag") )
.click(function() {
if ( isOpen ) {
$('$tag').autocomplete('close');
}
else {
$('$tag').autocomplete('search','').focus();
}
});
});
JS;
return JS::libraryWithDependancies ( JS::JQUERY_UI ) .
$html .
JS::javaScript ( $js );
}
public static function popupWrapper ( $msg, $timeout=1500, $title='' ) {
$id = Invocation::next();
if ( $title == '' ) $title = 'Message:';
if ( $timeout < 0 ) {
$timeoutJS = <<