forked from mobilizetoday/wordpress-jquerymobile
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
23 lines (18 loc) · 1.31 KB
/
script.js
File metadata and controls
23 lines (18 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
jQuery(document).bind("mobileinit", function(){
jQuery.mobile.ajaxEnabled = false;
jQuery.mobile.hashListeningEnabled = false;
});
if (typeof(ui_widget_content) == 'undefined') {var ui_widget_content = '';}
if (typeof(ui_form_comment) == 'undefined') {var ui_form_comment = '';}
jQuery(document).ready(function(){
jQuery('#sidebar .widget_links ul, #sidebar .widget_nav_menu ul, #sidebar .widget_recent_comments ul, #sidebar .widget_categories ul, #sidebar .widget_recent_entries ul, #sidebar .widget_meta ul, #sidebar .widget_rss ul, #sidebar .widget_archive ul, #sidebar .widget_pages ul, #sidebar .widget_jqmobile_theme ul').attr('data-role', 'listview').attr('data-inset', 'false').attr('data-theme', ui_widget_content);
jQuery('#commentform input, #commentform textarea, #commentform select').attr('data-theme', ui_form_comment);
jQuery('.widget .textwidget, .widget #calendar_wrap, .widget .tagcloud').addClass('ui-body ui-body-c');
jQuery('.widget select').attr('data-native-menu', 'false');
jQuery('option:first', jQuery('.widget select')).removeAttr('value');
jQuery('#wp-calendar #prev a, #wp-calendar #next a, a.post-edit-link, p.tags a, p.pages span').attr('data-role', 'button').attr('data-inline', 'true');
jQuery('#button-up').bind('click', function(){
jQuery.mobile.silentScroll(0);
return false;
});
});