1
0
mirror of https://github.com/e107inc/e107.git synced 2025-10-18 16:26:20 +02:00

Media-Manager fixes. filepicker() /jquery fix. e_AJAX_REQUEST - header detect added. Plugin install from xml feed. (tested locally only)

This commit is contained in:
CaMer0n
2012-07-20 07:31:16 +00:00
parent 8e7f63fe25
commit 23c4e06972
11 changed files with 237 additions and 29 deletions

View File

@@ -404,18 +404,32 @@ $(document).ready(function()
$(".e-ajax").click(function(){
var id = $(this).attr("href");
var src = $(this).attr("data-src");
var target = $(this).attr("data-target"); // support for input buttons etc.
var loading = $(this).attr('data-loading'); // image to show loading.
if(target != null)
{
id = '#' + target;
}
if(loading != null)
{
$(id).html("<img src='"+loading+"' alt='' />");
}
if(src == null) // old way - href='myscript.php#id-to-target
{
var tmp = src.split('#');
id = tmp[1];
src = tmp[0];
}
var effect = $(this).attr("data-effect");
$(id).load(src + " ",function() {
// var effect = $(this).attr("data-effect");
$(id).load(src,function() {
// alert(src);
// $(id).effect("slide");
});