136
|
1 |
/* |
|
2 |
* WPtouch 1.9 -The WPtouch Admin Javascript File |
|
3 |
* This file holds all the default jQuery & Ajax functions for the theme |
|
4 |
* Copyright (c) 2008-2009 Duane Storey & Dale Mugford (BraveNewCode Inc.) |
|
5 |
* Licensed under GPL. |
|
6 |
* |
|
7 |
* Last Updated: Novemeber 7th, 2009 |
|
8 |
*/ |
|
9 |
|
|
10 |
$j = jQuery.noConflict(); |
|
11 |
jQuery(document).ready(function($j) { |
|
12 |
|
|
13 |
new Ajax_upload('#upload_button', { |
|
14 |
action: '../?wptouch=upload', |
|
15 |
autoSubmit: true, |
|
16 |
name: 'submitted_file', |
|
17 |
onSubmit: function(file, extension) { $j("#upload_progress").show(); }, |
|
18 |
onComplete: function(file, response) { $j("#upload_progress").hide(); |
|
19 |
$j('#upload_response').hide().html(response).fadeIn(); } |
|
20 |
}); |
|
21 |
|
|
22 |
setTimeout(function() { |
|
23 |
jQuery.ajax({ |
|
24 |
url: "../?wptouch=plugins", |
|
25 |
success: function(data) {$j("#wptouch-plugin-content").html(data).fadeIn(350);} |
|
26 |
}); |
|
27 |
}, 1500); |
|
28 |
|
|
29 |
setTimeout(function() { $j('img.ajax-load').fadeOut(750); }, 2000); |
|
30 |
|
|
31 |
setTimeout(function() { $j("#wptouch-news-content").fadeIn(350); }, 1050); |
|
32 |
setTimeout(function() { $j("#wptouch-support-content").fadeIn(350); }, 1350); |
|
33 |
|
|
34 |
setTimeout(function() { $j('#wptouchupdated').fadeIn(350); }, 750); |
|
35 |
setTimeout(function() { $j('#wptouchupdated').fadeOut(350); }, 1750); |
|
36 |
|
|
37 |
jQuery('#header-text-color, #header-background-color, #header-border-color, #link-color').ColorPicker({ |
|
38 |
onSubmit: function(hsb, hex, rgb, el) { |
|
39 |
jQuery(el).val(hex); |
|
40 |
jQuery(el).ColorPickerHide(); |
|
41 |
}, |
|
42 |
onBeforeShow: function () { |
|
43 |
jQuery(this).ColorPickerSetColor( jQuery(this).attr('value') ); |
|
44 |
} |
|
45 |
}); |
|
46 |
|
|
47 |
$j("a.fancylink").fancybox({ |
|
48 |
'padding': 10, |
|
49 |
'zoomSpeedIn': 250, |
|
50 |
'zoomSpeedOut': 250, |
|
51 |
'zoomOpacity': true, |
|
52 |
'overlayShow': false, |
|
53 |
'frameHeight': 320, |
|
54 |
'frameWidth': 450, |
|
55 |
'hideOnContentClick': true |
|
56 |
}); |
|
57 |
}); |