Last change
on this file since 9188 was
9188,
checked in by Polly, 13 years ago
|
Adding the Phonegap www folder needed to compile.
|
-
Property svn:executable set to
*
|
File size:
1.6 KB
|
Line | |
---|
1 | /* |
---|
2 | |
---|
3 | _/ _/_/ _/_/_/_/_/ _/ |
---|
4 | _/ _/ _/ _/_/ _/ _/ _/_/_/ _/_/_/ |
---|
5 | _/ _/ _/_/ _/ _/ _/ _/ _/ _/ _/ _/ |
---|
6 | _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ |
---|
7 | _/ _/_/ _/ _/ _/_/ _/_/_/ _/_/_/ _/ _/ |
---|
8 | _/ |
---|
9 | _/ |
---|
10 | |
---|
11 | Created by David Kaneda <http://www.davidkaneda.com> |
---|
12 | Documentation and issue tracking on Google Code <http://code.google.com/p/jqtouch/> |
---|
13 | |
---|
14 | Special thanks to Jonathan Stark <http://jonathanstark.com/> |
---|
15 | and pinch/zoom <http://www.pinchzoom.com/> |
---|
16 | |
---|
17 | (c) 2009 by jQTouch project members. |
---|
18 | See LICENSE.txt for license. |
---|
19 | |
---|
20 | */ |
---|
21 | |
---|
22 | (function($) { |
---|
23 | if ($.jQTouch) |
---|
24 | { |
---|
25 | $.jQTouch.addExtension(function AutoTitles(jQT){ |
---|
26 | |
---|
27 | var titleSelector='.toolbar h1'; |
---|
28 | |
---|
29 | $(function(){ |
---|
30 | $('body').bind('pageAnimationStart', function(e, data){ |
---|
31 | if (data.direction === 'in'){ |
---|
32 | var $title = $(titleSelector, $(e.target)); |
---|
33 | var $ref = $(e.target).data('referrer'); |
---|
34 | if ($title.length && $ref){ |
---|
35 | $title.html($ref.text()); |
---|
36 | } |
---|
37 | } |
---|
38 | }); |
---|
39 | }); |
---|
40 | |
---|
41 | function setTitleSelector(ts){ |
---|
42 | titleSelector=ts; |
---|
43 | } |
---|
44 | |
---|
45 | return { |
---|
46 | setTitleSelector: setTitleSelector |
---|
47 | } |
---|
48 | |
---|
49 | }); |
---|
50 | } |
---|
51 | })(jQuery); |
---|
Note: See
TracBrowser
for help on using the repository browser.