89 lines
1.3 KiB
JavaScript
89 lines
1.3 KiB
JavaScript
/*
|
|
*
|
|
* essentian js function to manage fk.cms Control Panel
|
|
*
|
|
*
|
|
*
|
|
*/
|
|
|
|
|
|
function GetTableContent(url, tableContent, search, linked, sortVal) {
|
|
$.ajax({
|
|
type: "POST",
|
|
url: url,
|
|
cache: false,
|
|
data: ({search: search, linked: linked, sortVal: sortVal}),
|
|
success: function (html) {
|
|
$(tableContent).html(html);
|
|
//loading.busyBox('close');
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
function showTextarea(idCheckbox, idTextarea) {
|
|
|
|
val = $(idCheckbox).is(':checked');
|
|
//alert(val);
|
|
|
|
if (val == true) {
|
|
$(idTextarea).show();
|
|
} else {
|
|
$(idTextarea).hide();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function showHide(idBox) {
|
|
//alert(val);
|
|
// alert(idBox);
|
|
if ($(idBox).css("display") !== "none") {
|
|
$(idBox).hide();
|
|
} else {
|
|
$(idBox).show('swing');
|
|
}
|
|
$('.hide').not(idBox).hide();
|
|
}
|
|
|
|
function showHideAll(idBox) {
|
|
$('.hide').not('#' + idBox).hide();
|
|
}
|
|
|
|
$(function () {
|
|
$(".main a").each(function () {
|
|
$(this).attr("rel", "external");
|
|
});
|
|
});
|
|
|
|
function splitPhone() {
|
|
$('#phone').each(function () {
|
|
this.value = this.value.toString().split(" ").join("").split("-").join("").split("+").join("00");
|
|
});
|
|
}
|
|
|
|
function showOptions(idCheckbox, idBox) {
|
|
|
|
val = $(idCheckbox).is(':checked');
|
|
|
|
alert(val);
|
|
alert(idBox);
|
|
|
|
if (val == true) {
|
|
|
|
$(idBox).show();
|
|
|
|
|
|
|
|
} else {
|
|
|
|
$(idBox).hide();
|
|
|
|
}
|
|
|
|
}
|