2009-08-25 12:16:42 +00:00
|
|
|
// JavaScript Document
|
|
|
|
|
2009-12-04 21:03:27 +00:00
|
|
|
var page = baseurl+'/ajax.php';
|
2010-01-16 09:19:34 +00:00
|
|
|
var loading_img = "<img src='"+imageurl+"/ajax-loader.gif'>";
|
|
|
|
var loading = loading_img+" Loading...";
|
2010-01-20 07:58:20 +00:00
|
|
|
|
2009-08-25 12:16:42 +00:00
|
|
|
|
|
|
|
function Confirm_Delete(delUrl) {
|
|
|
|
if (confirm("Are you sure you want to delete")) {
|
|
|
|
document.location = delUrl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function Confirm_Uninstall(delUrl) {
|
|
|
|
if (confirm("Are you sure you want to uninstall this plugin ?")) {
|
|
|
|
document.location = delUrl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function Confirm_DelVid(delUrl) {
|
|
|
|
if (confirm("Are you sure you want to delete this video?")) {
|
|
|
|
document.location = delUrl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2009-12-31 11:56:47 +00:00
|
|
|
|
|
|
|
function confirm_it(msg)
|
|
|
|
{
|
|
|
|
var action = confirm(msg);
|
|
|
|
if(action)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}else
|
|
|
|
return false;
|
|
|
|
|
2009-08-25 12:16:42 +00:00
|
|
|
}
|
|
|
|
|
2009-12-09 13:43:19 +00:00
|
|
|
function reloadImage(captcha_src,imgid)
|
2009-08-25 12:16:42 +00:00
|
|
|
{
|
2009-12-09 13:43:19 +00:00
|
|
|
img = document.getElementById(imgid);
|
2009-08-25 12:16:42 +00:00
|
|
|
img.src = captcha_src+'?'+Math.random();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//Validate the Add Category Form
|
|
|
|
function validate_category_form(thisform)
|
|
|
|
{
|
|
|
|
with (thisform)
|
|
|
|
{
|
|
|
|
if (validate_required(title,"Title must be filled out!")==false)
|
|
|
|
{
|
|
|
|
title.focus();return false;
|
|
|
|
}
|
|
|
|
if (validate_required(description,"Description must be filled out!")==false)
|
|
|
|
{
|
|
|
|
description.focus();return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//Validate the Add Advertisment Form
|
|
|
|
function validate_ad_form(thisform)
|
|
|
|
{
|
|
|
|
with (thisform)
|
|
|
|
{
|
|
|
|
if (validate_required(name,"Name must be filled out!")==false)
|
|
|
|
{
|
|
|
|
name.focus();return false;
|
|
|
|
}
|
|
|
|
if (validate_required(type,"Type must be filled out!")==false)
|
|
|
|
{
|
|
|
|
type.focus();return false;
|
|
|
|
}
|
|
|
|
if (validate_required(syntax,"Syntax Must Be Filled Out")==false)
|
|
|
|
{
|
|
|
|
syntax.focus();return false;
|
|
|
|
}
|
|
|
|
if (validate_required(code,"Code Must Be Filled Out")==false)
|
|
|
|
{
|
|
|
|
code.focus();return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//CHECKK ALL FUNCTIOn
|
|
|
|
|
|
|
|
<!--
|
|
|
|
function checkAll(wotForm,wotState) {
|
|
|
|
for (a=0; a<wotForm.elements.length; a++) {
|
|
|
|
if (wotForm.elements[a].id.indexOf("delete_") == 0) {
|
|
|
|
wotForm.elements[a].checked = wotState ;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// -->
|
|
|
|
|
2010-01-20 07:58:20 +00:00
|
|
|
|
2009-08-25 12:16:42 +00:00
|
|
|
function check_remote_url()
|
|
|
|
{
|
|
|
|
|
|
|
|
var page = baseurl+'/actions/file_downloader.php';
|
|
|
|
var Val = $("#remote_file_url").val();
|
|
|
|
|
|
|
|
$.post(page,
|
|
|
|
{
|
|
|
|
check_url : 'yes' ,
|
|
|
|
file_url : Val,
|
|
|
|
file_name : file_name
|
|
|
|
},
|
|
|
|
|
|
|
|
function (data) {
|
|
|
|
if(data.err)
|
|
|
|
{
|
|
|
|
alert(data.err);
|
|
|
|
}else{
|
|
|
|
|
|
|
|
$("#remote_upload_div").html('<div class="progressWrapper"><div class="progressBarInProgress"></div><div>');
|
|
|
|
var current_size = 0;
|
|
|
|
var total_size = data.size;
|
|
|
|
refresh_interval(file_name+'.'+data.ext,total_size);
|
|
|
|
upload_file(Val,file_name);
|
|
|
|
alert(data.size);
|
|
|
|
}
|
|
|
|
}, "json");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function upload_file(Val,file_name)
|
|
|
|
{
|
|
|
|
var page = baseurl+'/actions/file_downloader.php';
|
|
|
|
$.post(page,
|
|
|
|
{
|
|
|
|
file_url : Val,
|
|
|
|
file_name : file_name
|
|
|
|
},
|
|
|
|
function(data)
|
|
|
|
{
|
|
|
|
if(!data)
|
|
|
|
alert("No data");
|
|
|
|
else
|
|
|
|
alert("Ho gaya");
|
|
|
|
},'text');
|
|
|
|
}
|
|
|
|
|
|
|
|
function check_progess(file,total_size)
|
|
|
|
{
|
|
|
|
var page = baseurl+'/actions/get_file_size.php';
|
|
|
|
$.post(page,
|
|
|
|
{
|
|
|
|
file:file,
|
|
|
|
},
|
|
|
|
|
|
|
|
function (data) {
|
|
|
|
var current_size = data;
|
|
|
|
return (total_size/current_size)*100;
|
|
|
|
}, "text");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function refresh_interval(file,total_size)
|
|
|
|
{
|
|
|
|
var progress = check_progess(file,total_size)
|
|
|
|
$("#remote_upload_div").html('<div class="progressWrapper"><div class="progressBarInProgress" style="width:'+progress+'%"></div><div>');
|
|
|
|
|
|
|
|
if(progress<100)
|
|
|
|
refresh_interval();
|
|
|
|
}
|
2009-10-03 10:38:28 +00:00
|
|
|
|
|
|
|
|
2009-11-04 10:27:40 +00:00
|
|
|
|
|
|
|
/**
|
2009-12-21 21:11:54 +00:00
|
|
|
* Function used to delete any item with confirm message
|
2009-11-04 10:27:40 +00:00
|
|
|
*/
|
2009-12-21 21:11:54 +00:00
|
|
|
function delete_item(obj,id,msg,url)
|
2009-11-04 10:27:40 +00:00
|
|
|
{
|
2009-12-21 21:11:54 +00:00
|
|
|
$("#"+obj+'-'+id).click(function () {
|
2009-11-04 10:27:40 +00:00
|
|
|
if (confirm(msg)) {
|
|
|
|
document.location = url;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
2009-12-21 21:11:54 +00:00
|
|
|
function delete_video(obj,id,msg,url){ return delete_item(obj,id,msg,url); }
|
2009-11-30 19:46:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Function used to load editor's pic video
|
|
|
|
*/
|
|
|
|
function get_ep_video(vid)
|
|
|
|
{
|
|
|
|
var page = baseurl+'/plugins/editors_pick/get_ep_video.php';
|
2010-01-16 09:19:34 +00:00
|
|
|
$("#ep_video_container").html(loading);
|
2009-11-30 19:46:45 +00:00
|
|
|
$.post(page,
|
|
|
|
{
|
|
|
|
vid : vid,
|
|
|
|
},
|
|
|
|
function(data)
|
|
|
|
{
|
|
|
|
if(!data)
|
|
|
|
alert("No data");
|
|
|
|
else
|
|
|
|
$("#ep_video_container").html(data);
|
|
|
|
},'text');
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Function used to load editor's pic video
|
|
|
|
*/
|
|
|
|
function get_video(type,div)
|
|
|
|
{
|
2010-01-16 09:19:34 +00:00
|
|
|
$(div).css("display","block");
|
|
|
|
$(div).html(loading);
|
|
|
|
$(div).html(loading);
|
2009-11-30 19:46:45 +00:00
|
|
|
$.post(page,
|
|
|
|
{
|
|
|
|
mode : type,
|
|
|
|
},
|
|
|
|
function(data)
|
|
|
|
{
|
2009-12-01 11:51:31 +00:00
|
|
|
$(div).html(data);
|
2009-11-30 19:46:45 +00:00
|
|
|
},'text');
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function rating_over(msg,disable)
|
|
|
|
{
|
|
|
|
if(disable!='disabled')
|
|
|
|
$("#rating_result_container").html(msg);
|
|
|
|
}
|
|
|
|
function rating_out(msg,disable)
|
|
|
|
{
|
|
|
|
if(disable!='disabled')
|
|
|
|
$("#rating_result_container").html(msg);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function submit_share_form(form_id,type)
|
|
|
|
{
|
2009-12-04 21:03:27 +00:00
|
|
|
|
2010-01-16 09:19:34 +00:00
|
|
|
$("#share_form_results").css("display","block");
|
|
|
|
$("#share_form_results").html(loading);
|
2009-11-30 19:46:45 +00:00
|
|
|
$.post(page,
|
|
|
|
{
|
|
|
|
mode : 'share_object',
|
|
|
|
type : type,
|
|
|
|
users : $("#"+form_id+" input:#users").val(),
|
|
|
|
message : $("#"+form_id+" input:#message").val(),
|
|
|
|
id : $("#"+form_id+" input:#objectid").val(),
|
|
|
|
},
|
|
|
|
function(data)
|
|
|
|
{
|
|
|
|
if(!data)
|
|
|
|
alert("No data");
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$("#share_form_results").html(data);
|
|
|
|
}
|
|
|
|
},'text');
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function flag_object(form_id,id,type)
|
|
|
|
{
|
2010-01-16 09:19:34 +00:00
|
|
|
$("#flag_form_result").css("display","block");
|
|
|
|
$("#flag_form_result").html(loading);
|
2009-11-30 19:46:45 +00:00
|
|
|
$.post(page,
|
|
|
|
{
|
|
|
|
mode : 'flag_object',
|
|
|
|
type : type,
|
2009-12-31 11:56:47 +00:00
|
|
|
flag_type : $("#"+form_id+" select:#flag_type").val(),
|
2009-11-30 19:46:45 +00:00
|
|
|
id : id,
|
|
|
|
},
|
|
|
|
function(data)
|
|
|
|
{
|
|
|
|
if(!data)
|
|
|
|
alert("No data");
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$("#flag_form_result").css("display","block");
|
|
|
|
$("#flag_form_result").html(data);
|
|
|
|
}
|
|
|
|
},'text');
|
|
|
|
}
|
|
|
|
|
2010-01-16 09:19:34 +00:00
|
|
|
function slide_up_watch_video(nodiv)
|
|
|
|
{
|
|
|
|
if($('.video_action_result_boxes '+nodiv).css("display")!="block")
|
|
|
|
$('.video_action_result_boxes > *').slideUp();
|
|
|
|
}
|
|
|
|
|
2009-11-30 19:46:45 +00:00
|
|
|
function add_to_fav(type,id)
|
|
|
|
{
|
2010-01-16 09:19:34 +00:00
|
|
|
$("#video_action_result_cont").css("display","block");
|
|
|
|
$("#video_action_result_cont").html(loading);
|
2009-12-04 21:03:27 +00:00
|
|
|
|
2009-11-30 19:46:45 +00:00
|
|
|
$.post(page,
|
|
|
|
{
|
|
|
|
mode : 'add_to_fav',
|
|
|
|
type : type,
|
|
|
|
id : id,
|
|
|
|
},
|
|
|
|
function(data)
|
|
|
|
{
|
|
|
|
if(!data)
|
|
|
|
alert("No data");
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$("#video_action_result_cont").css("display","block");
|
|
|
|
$("#video_action_result_cont").html(data);
|
|
|
|
}
|
|
|
|
},'text');
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2009-12-01 11:51:31 +00:00
|
|
|
function subscriber(user,type,result_cont)
|
2009-11-30 19:46:45 +00:00
|
|
|
{
|
2010-01-16 09:19:34 +00:00
|
|
|
$("#"+result_cont).css("display","block");
|
|
|
|
$("#"+result_cont).html(loading);
|
2009-12-04 21:03:27 +00:00
|
|
|
|
2009-11-30 19:46:45 +00:00
|
|
|
$.post(page,
|
|
|
|
{
|
|
|
|
mode : type,
|
|
|
|
subscribe_to : user,
|
|
|
|
},
|
|
|
|
function(data)
|
|
|
|
{
|
|
|
|
if(!data)
|
|
|
|
alert("No data");
|
|
|
|
else
|
|
|
|
{
|
2009-12-01 11:51:31 +00:00
|
|
|
$("#"+result_cont).css("display","block");
|
|
|
|
$("#"+result_cont).html(data);
|
2009-11-30 19:46:45 +00:00
|
|
|
}
|
|
|
|
},'text');
|
|
|
|
}
|
|
|
|
|
2009-12-21 21:11:54 +00:00
|
|
|
function add_friend(uid,result_cont)
|
|
|
|
{
|
2010-01-16 09:19:34 +00:00
|
|
|
$("#"+result_cont).css("display","block");
|
|
|
|
$("#"+result_cont).html(loading);
|
|
|
|
|
2009-12-21 21:11:54 +00:00
|
|
|
$.post(page,
|
|
|
|
{
|
|
|
|
mode : 'add_friend',
|
|
|
|
uid : uid,
|
|
|
|
},
|
|
|
|
function(data)
|
|
|
|
{
|
|
|
|
if(!data)
|
|
|
|
alert("No data");
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$("#"+result_cont).css("display","block");
|
|
|
|
$("#"+result_cont).html(data);
|
|
|
|
}
|
|
|
|
},'text');
|
|
|
|
}
|
|
|
|
|
2009-11-30 19:46:45 +00:00
|
|
|
|
2010-01-16 14:28:04 +00:00
|
|
|
function block_user(user,result_cont)
|
|
|
|
{
|
|
|
|
$("#"+result_cont).css("display","block");
|
|
|
|
$("#"+result_cont).html(loading);
|
|
|
|
|
|
|
|
$.post(page,
|
|
|
|
{
|
|
|
|
mode : 'ban_user',
|
|
|
|
user : user,
|
|
|
|
},
|
|
|
|
function(data)
|
|
|
|
{
|
|
|
|
if(!data)
|
|
|
|
alert("No data");
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$("#"+result_cont).css("display","block");
|
|
|
|
$("#"+result_cont).html(data);
|
|
|
|
}
|
|
|
|
},'text');
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2009-11-30 19:46:45 +00:00
|
|
|
function rate_comment(cid,thumb)
|
|
|
|
{
|
2010-01-16 09:19:34 +00:00
|
|
|
|
2009-11-30 19:46:45 +00:00
|
|
|
$.post(page,
|
|
|
|
{
|
|
|
|
mode : 'rate_comment',
|
|
|
|
thumb : thumb,
|
|
|
|
cid : cid
|
|
|
|
},
|
|
|
|
function(data)
|
|
|
|
{
|
|
|
|
if(!data)
|
|
|
|
alert("No data");
|
|
|
|
else
|
|
|
|
{
|
2010-01-16 09:19:34 +00:00
|
|
|
|
2009-11-30 19:46:45 +00:00
|
|
|
if(data.msg!='')
|
|
|
|
alert(data.msg)
|
|
|
|
if(data.rate!='')
|
|
|
|
$("#comment_rating_"+cid).html(data.rate);
|
|
|
|
}
|
|
|
|
},'json');
|
|
|
|
}
|
|
|
|
|
|
|
|
function add_comment_js(form_id,type)
|
|
|
|
{
|
2010-01-16 09:19:34 +00:00
|
|
|
$("#add_comment_result").css("display","block");
|
|
|
|
$("#add_comment_result").html(loading);
|
2009-11-30 19:46:45 +00:00
|
|
|
$.post(page,
|
|
|
|
{
|
|
|
|
mode : 'add_comment',
|
|
|
|
name : $("#"+form_id+" input:#name").val(),
|
|
|
|
email : $("#"+form_id+" input:#email").val(),
|
|
|
|
comment : $("#"+form_id+" textarea:#comment_box").val(),
|
|
|
|
obj_id : $("#"+form_id+" input:#obj_id").val(),
|
|
|
|
reply_to : $("#"+form_id+" input:#reply_to").val(),
|
|
|
|
type : type,
|
|
|
|
},
|
|
|
|
function(data)
|
|
|
|
{
|
|
|
|
if(!data)
|
|
|
|
alert("No data");
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$("#add_comment_result").css("display","block");
|
|
|
|
if(data.err!='')
|
|
|
|
$("#add_comment_result").html(data.err);
|
|
|
|
if(data.msg!='')
|
|
|
|
$("#add_comment_result").html(data.msg);
|
2009-12-01 11:51:31 +00:00
|
|
|
|
|
|
|
if(data.cid)
|
2009-11-30 19:46:45 +00:00
|
|
|
{
|
|
|
|
get_the_comment(data.cid,"#latest_comment_container");
|
|
|
|
$("#"+form_id).slideUp();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},'json');
|
|
|
|
}
|
|
|
|
|
|
|
|
function get_the_comment(id,div)
|
|
|
|
{
|
2010-01-16 09:19:34 +00:00
|
|
|
|
|
|
|
$(div).html(loading);
|
2009-11-30 19:46:45 +00:00
|
|
|
$.post(page,
|
|
|
|
{
|
|
|
|
mode : 'get_comment',
|
|
|
|
cid : id
|
|
|
|
},
|
|
|
|
function(data)
|
|
|
|
{
|
|
|
|
if(!data)
|
|
|
|
alert("No data");
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$(div).css("display","none");
|
|
|
|
$(div).html(data).fadeIn("slow");
|
|
|
|
}
|
|
|
|
},'text');
|
|
|
|
}
|
|
|
|
|
|
|
|
function add_playlist(mode,vid,form_id)
|
|
|
|
{
|
2010-01-16 09:19:34 +00:00
|
|
|
$("#playlist_form_result").css("display","block");
|
|
|
|
$("#playlist_form_result").html(loading);
|
2009-11-30 19:46:45 +00:00
|
|
|
switch(mode)
|
|
|
|
{
|
|
|
|
case 'add':
|
|
|
|
{
|
|
|
|
$.post(page,
|
|
|
|
{
|
|
|
|
mode : 'add_playlist',
|
|
|
|
vid : vid,
|
|
|
|
pid : $("#playlist_id option:selected").val(),
|
|
|
|
},
|
|
|
|
function(data)
|
|
|
|
{
|
|
|
|
if(!data)
|
|
|
|
alert("No data");
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if(data.err != '')
|
|
|
|
{
|
|
|
|
$("#playlist_form_result").css("display","block");
|
|
|
|
$("#playlist_form_result").html(data.err);
|
|
|
|
}
|
|
|
|
|
|
|
|
if(data.msg!='')
|
|
|
|
{
|
|
|
|
$("#playlist_form_result").css("display","block");
|
|
|
|
$("#playlist_form_result").html(data.msg);
|
|
|
|
$("#"+form_id).css("display","none");
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
},'json');
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'new':
|
|
|
|
{
|
|
|
|
|
|
|
|
$.post(page,
|
|
|
|
{
|
|
|
|
mode : 'add_new_playlist',
|
|
|
|
vid : vid,
|
|
|
|
plname : $("#"+form_id+" input:#playlist_name").val(),
|
|
|
|
},
|
|
|
|
function(data)
|
|
|
|
{
|
|
|
|
if(!data)
|
|
|
|
alert("No data");
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if(data.err != '')
|
|
|
|
{
|
|
|
|
$("#playlist_form_result").css("display","block");
|
|
|
|
$("#playlist_form_result").html(data.err);
|
|
|
|
}
|
|
|
|
|
|
|
|
if(data.msg!='')
|
|
|
|
{
|
|
|
|
$("#playlist_form_result").css("display","block");
|
|
|
|
$("#playlist_form_result").html(data.msg);
|
|
|
|
$("#"+form_id).css("display","none");
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
},'json');
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
2009-12-04 21:03:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Function used to add and remove video from qucklist
|
|
|
|
* THIS FEATURE IS SPECIALLY ADDED ON REQUEST BY JAHANZEB HASSAN
|
|
|
|
*/
|
|
|
|
function add_quicklist(obj,vid)
|
|
|
|
{
|
|
|
|
|
|
|
|
$.post(page,
|
|
|
|
{
|
|
|
|
mode : 'quicklist',
|
|
|
|
todo : 'add',
|
|
|
|
vid : vid
|
|
|
|
},
|
|
|
|
function(data)
|
|
|
|
{
|
|
|
|
if(!data)
|
|
|
|
alert("No data");
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$(obj).removeClass('add_icon');
|
|
|
|
$(obj).addClass('check_icon');
|
|
|
|
$(obj).removeAttr('onClick');
|
|
|
|
load_quicklist_box();
|
|
|
|
}
|
|
|
|
},'text');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Function used to remove video from qucklist
|
|
|
|
*/
|
|
|
|
function remove_qucklist(obj,vid)
|
|
|
|
{
|
|
|
|
|
|
|
|
$.post(page,
|
|
|
|
{
|
|
|
|
mode : 'quicklist',
|
|
|
|
todo : 'remove',
|
|
|
|
vid : vid
|
|
|
|
},
|
|
|
|
function(data)
|
|
|
|
{
|
|
|
|
if(!data)
|
|
|
|
alert("No data");
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$(obj).slideUp();
|
|
|
|
$(obj).hide();
|
|
|
|
}
|
|
|
|
},'text');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Function used to load quicklist
|
|
|
|
*/
|
|
|
|
function load_quicklist_box()
|
|
|
|
{
|
|
|
|
|
|
|
|
$.post(page,
|
|
|
|
{
|
|
|
|
mode : 'getquicklistbox',
|
|
|
|
},
|
|
|
|
function(data)
|
|
|
|
{
|
|
|
|
if(!data)
|
|
|
|
$("#quicklist_box").css("display","none");
|
|
|
|
else
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
$("#quicklist_box").css("display","block");
|
|
|
|
$("#quicklist_box").html(data);
|
|
|
|
|
|
|
|
if($.cookie("quick_list_box")!="hide")
|
|
|
|
{
|
|
|
|
$("#quicklist_cont").css("display","block");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},'text');
|
|
|
|
}
|
|
|
|
function clear_quicklist()
|
|
|
|
{
|
|
|
|
$.post(page,
|
|
|
|
{
|
|
|
|
mode : 'clear_quicklist',
|
|
|
|
},
|
|
|
|
function(data)
|
|
|
|
{
|
|
|
|
load_quicklist_box();
|
|
|
|
},'text');
|
|
|
|
}
|
|
|
|
|
|
|
|
function quick_show_hide_toggle(obj)
|
|
|
|
{
|
|
|
|
$(obj).slideToggle()
|
|
|
|
|
|
|
|
if($.cookie("quick_list_box")=="show")
|
|
|
|
$.cookie("quick_list_box","hide")
|
|
|
|
else
|
|
|
|
$.cookie("quick_list_box","show")
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Function used to set cookies
|
|
|
|
*/
|
|
|
|
function ini_cookies()
|
|
|
|
{
|
|
|
|
if(!$.cookie("quick_list_box"))
|
|
|
|
$.cookie("quick_list_box","show")
|
2009-12-21 21:11:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function get_group_info(Div,li)
|
|
|
|
{
|
|
|
|
|
|
|
|
if( $(Div).css("display")=="none")
|
|
|
|
{
|
|
|
|
$("#group_info_cont > div").slideUp();
|
|
|
|
$("#group_info_cont "+Div).slideDown();
|
|
|
|
$(".group_detail_tabs .selected").removeClass("selected");
|
|
|
|
$(li).addClass("selected");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|