Skip to content

Commit

Permalink
fixed js loading and link to post autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
mzeiher committed Jun 29, 2014
1 parent 5e89720 commit 1b0241b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion admin/js/travelermap-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@
{text: "Cancel", click: function() {
$(this).dialog("destroy");
}}
]});
], minHeight:400});
dialog.on('close', function() {
dialog.dialog('destroy');
});
Expand Down
6 changes: 3 additions & 3 deletions admin/travelermap-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,20 @@ function travelermap_enqueue_admin_scripts() {
//wp_enqueue_script('jquery-ui-01.10.4', TM_URL . "js/jquery-ui-1.10.4.min.js" , array('jquery'), '1.10.4', false);

wp_enqueue_script('jquery-ui-core');
wp_enqueue_script('jquery-ui-widget');
wp_enqueue_script('jquery-ui-autocomplete');
wp_enqueue_script('jquery-ui-sortable');
wp_enqueue_script('jquery-ui-datepicker');
wp_enqueue_script('jquery-ui-tooltip');
wp_enqueue_script('jquery-ui-dialog');
wp_enqueue_script('jquery-ui-button');
wp_enqueue_script('jquery-ui-widget');

wp_enqueue_script('jquery-colorbox', TM_URL . "js/jquery.colorbox-min.js" , array('jquery'), '1.5.9', false);
wp_enqueue_script('jquery-dateFormat', TM_URL . "js/jquery-dateFormat.min.js" , array('jquery'), '1.0.0', false);
wp_enqueue_script('spectrum', TM_URL . "js/spectrum.js" , array('jquery'), '1.3.4', false);
wp_enqueue_script('json2');
wp_enqueue_script('travelermap-admin', TM_URL . "admin/js/travelermap-admin.js" , array(), '1.1.0', false);
wp_enqueue_script('travelermap-frontend', TM_URL . "frontend/js/travelermap-frontend.js" , array(), '1.1.0', false);
wp_enqueue_script('travelermap-admin', TM_URL . "admin/js/travelermap-admin.js" , array('jquery', 'jquery-ui-core', 'jquery-ui-widget'), '1.2.0', false);
wp_enqueue_script('travelermap-frontend', TM_URL . "frontend/js/travelermap-frontend.js" , array('jquery'), '1.2.0', false);
wp_enqueue_style('tm-admin', TM_URL . "media/tm-admin.css" );
wp_enqueue_style('tm-frontend', TM_URL . "media/tm-frontend.css" );
wp_enqueue_style('font-awesome', TM_URL . "media/font-awesome.min.css" );
Expand Down
2 changes: 1 addition & 1 deletion frontend/travelermap-frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function travelermap_enqueue_frontend_scripts() {
wp_enqueue_script('jquery-colorbox', TM_URL . "js/jquery.colorbox-min.js" , array('jquery'), '1.5.9', false);
wp_enqueue_script('jquery-dateFormat', TM_URL . "js/jquery-dateFormat.min.js" , array('jquery'), '1.0.0', false);
wp_enqueue_script('json2');
wp_enqueue_script('travelermap-frontend', TM_URL . "frontend/js/travelermap-frontend.js" , array(), '1.1.0', false);
wp_enqueue_script('travelermap-frontend', TM_URL . "frontend/js/travelermap-frontend.js" , array('jquery'), '1.2.0', false);
}

function travelermap_enqueue_frontend_styles() {
Expand Down

0 comments on commit 1b0241b

Please sign in to comment.