Skip to content

Commit

Permalink
update the resources files (css, js) to meaningfull names.
Browse files Browse the repository at this point in the history
  • Loading branch information
seanchen committed Mar 20, 2013
1 parent 4697856 commit e6e64b8
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 12 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion wp-trac-client/templates/page-mytickets.php
Expand Up @@ -8,7 +8,7 @@

<?php
get_header();
wp_enqueue_style('wptc-trac-ticket');
wp_enqueue_style('wptc-css');
global $current_user;
?>

Expand Down
6 changes: 3 additions & 3 deletions wp-trac-client/templates/page-ticket-details.php
Expand Up @@ -5,9 +5,9 @@
*/
wp_enqueue_script('jquery-ui-autocomplete');
// enqueue styles and scripts for trac project.
wp_enqueue_style('wptc-trac-ticket');
wp_enqueue_script('wptc-trac-wikitoolbar');
wp_localize_script('wptc-trac-wikitoolbar', 'WptcAjaxObj',
wp_enqueue_style('wptc-css');
wp_enqueue_script('wptc-js');
wp_localize_script('wptc-js', 'WptcAjaxObj',
array('url' => admin_url('admin-ajax.php')));
wp_enqueue_style('jquery-ui');

Expand Down
2 changes: 1 addition & 1 deletion wp-trac-client/templates/page-tickets.php
Expand Up @@ -7,7 +7,7 @@

<?php
get_header();
wp_enqueue_style('wptc-trac-ticket');
wp_enqueue_style('wptc-css');
wp_enqueue_script('jquery-masonry');

// the page slug will be the project name.
Expand Down
11 changes: 4 additions & 7 deletions wp-trac-client/wp-trac-client.php
Expand Up @@ -102,17 +102,14 @@ function register_resources() {
wp_register_style('jquery.dataTables',
plugins_url('wp-trac-client/css/jquery.dataTables.css'));
// the styles and scripts for trac.
wp_register_style('wptc-trac-ticket',
plugins_url('wp-trac-client/css/trac_ticket.css'));
wp_register_script('wptc-trac-wikitoolbar',
plugins_url('wp-trac-client/js/trac-wikitoolbar.js'));
wp_register_style('wptc-css',
plugins_url('wp-trac-client/css/wptc.css'));
wp_register_script('wptc-js',
plugins_url('wp-trac-client/js/wptc.js'));
// 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.8/themes/base/jquery-ui.css');
// javascript for autocomplete.
wp_register_script('wptc-autocomplete',
plugins_url('wp-trac-client/js/wptc-autocomplete.js'));
// js lib for jQuery masonry.
wp_register_script('jquery-masonry',
plugins_url('wp-trac-client/js/jquery.masonry.min.js'),
Expand Down

0 comments on commit e6e64b8

Please sign in to comment.