diff --git a/wp-trac-client/ajax.php b/wp-trac-client/ajax.php index bfa25de..05ba5b5 100644 --- a/wp-trac-client/ajax.php +++ b/wp-trac-client/ajax.php @@ -1,5 +1,29 @@ admin_url('admin-ajax.php'))); +wp_enqueue_style('jquery-ui'); // you may not need the following section if you // don't have tiny-mce comments plugin installed. diff --git a/wp-trac-client/widgets.php b/wp-trac-client/widgets.php index 87771ca..9de5853 100644 --- a/wp-trac-client/widgets.php +++ b/wp-trac-client/widgets.php @@ -469,14 +469,13 @@ function wptc_widget_action_resolve($action) { function wptc_widget_action_reassign($action) { $fields = $action[3][0]; - $options = wptc_widget_options_html($fields[2], $fields[1]); + //$options = wptc_widget_options_html($fields[2], $fields[1]); // the resolve is a select element. // it will be disabled untile the radio button is selected. $select = << - {$options} - + +{$options} EOT; return apply_filters('wptc_widget_action_reassign', $select); diff --git a/wp-trac-client/wp-trac-client.php b/wp-trac-client/wp-trac-client.php index f1e6185..0efae5f 100644 --- a/wp-trac-client/wp-trac-client.php +++ b/wp-trac-client/wp-trac-client.php @@ -87,7 +87,10 @@ function register_resources() { // using wp_enqueue_style to load this css. // jquery ui dialog style seens not automatically loaded. wp_register_style('jquery-ui', - 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/themes/base/jquery-ui.css'); + 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css'); + // javascript for autocomplete. + wp_register_script('wptc-autocomplete', + plugins_url('wt-trac-client/js/wptc-autocomplete.js')); } function get_wptc_client() {