update
This commit is contained in:
88
Static/script/initAdmin.js
Normal file
88
Static/script/initAdmin.js
Normal file
@@ -0,0 +1,88 @@
|
||||
/*
|
||||
*
|
||||
* 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();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user