Fix: correction temporaire sur jQuery mobile afin de corriger le probleme dans les menus

en attente de confirmation des dveloppeurs jQuery Mobile
This commit is contained in:
Regis Houssin 2010-10-25 16:33:32 +00:00
parent 369122fb0c
commit 47f468a434
2 changed files with 6 additions and 1 deletions

View File

@ -2268,7 +2268,9 @@ $.widget( "mobile.listview", $.mobile.widget, {
var list = $( this ),
parent = list.parent(),
title = parent.contents()[ 0 ].nodeValue.split("\n")[0],
id = parentId + "&" + $.mobile.subPageUrlKey + "=" + $.mobile.idStringEscape(title + " " + i),
// DOLFIX - Regis - bug in nested list
//id = parentId + "&" + $.mobile.subPageUrlKey + "=" + $.mobile.idStringEscape(title + " " + i),
id = parentId + "&" + $.mobile.subPageUrlKey + "=" + $.mobile.idStringEscape(title + "-" + i),
theme = list.data( "theme" ) || o.theme,
countTheme = list.data( "counttheme" ) || parentList.data( "counttheme" ) || o.countTheme,
newPage = list.wrap( "<div data-role='page'><div data-role='content'></div></div>" )

View File

@ -35,7 +35,10 @@ header("Content-type: text/html; charset=".$conf->file->character_set_client);
<link rel="stylesheet" href="<?php echo DOL_URL_ROOT.'/includes/jquery/mobile/jquery.mobile-1.0a1.min.css'; ?>" />
<link rel="stylesheet" href="<?php echo DOL_URL_ROOT.'/theme/phones/smartphone/theme/default/default.css.php'; ?>" />
<script src="<?php echo DOL_URL_ROOT.'/includes/jquery/js/jquery-1.4.3.min.js'; ?>"></script>
<script src="<?php echo DOL_URL_ROOT.'/includes/jquery/mobile/jquery.mobile-1.0a1.js'; ?>"></script>
<!--
<script src="<?php echo DOL_URL_ROOT.'/includes/jquery/mobile/jquery.mobile-1.0a1.min.js'; ?>"></script>
-->
</head>
<body>