mirror of
http://git.whoc.org.uk/git/password-manager.git
synced 2025-01-10 23:00:04 +01:00
644891059e
JQTouch and Zepto are tentatively used for the mobile version of Clipperz. No final commitment has been made, though.
53 lines
1.6 KiB
JavaScript
53 lines
1.6 KiB
JavaScript
/*
|
|
|
|
_/ _/_/ _/_/_/_/_/ _/
|
|
_/ _/ _/ _/_/ _/ _/ _/_/_/ _/_/_/
|
|
_/ _/ _/_/ _/ _/ _/ _/ _/ _/ _/ _/
|
|
_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/
|
|
_/ _/_/ _/ _/ _/_/ _/_/_/ _/_/_/ _/ _/
|
|
_/
|
|
_/
|
|
|
|
Created by David Kaneda <http://www.davidkaneda.com>
|
|
Maintained by Thomas Yip <http://beedesk.com/>
|
|
Sponsored by Sencha Labs <http://www.sencha.com/>
|
|
Special thanks to Jonathan Stark <http://www.jonathanstark.com/>
|
|
|
|
Documentation and issue tracking on GitHub <http://github.com/senchalabs/jQTouch/>
|
|
|
|
(c) 2009-2011 Sencha Labs
|
|
jQTouch may be freely distributed under the MIT license.
|
|
|
|
*/
|
|
|
|
(function($) {
|
|
if ($.jQTouch)
|
|
{
|
|
$.jQTouch.addExtension(function AutoTitles(jQT){
|
|
|
|
var titleSelector='.toolbar h1';
|
|
|
|
$(function(){
|
|
$('#jqt').bind('pageAnimationStart', function(e, data){
|
|
if (data.direction === 'in'){
|
|
var $title = $(titleSelector, $(e.target));
|
|
var $ref = $(e.target).data('referrer');
|
|
if ($title.length && $ref && $title.text() === ''){
|
|
$title.html($ref.text());
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
function setTitleSelector(ts){
|
|
titleSelector=ts;
|
|
}
|
|
|
|
return {
|
|
setTitleSelector: setTitleSelector
|
|
};
|
|
|
|
});
|
|
}
|
|
})($);
|