�-xs
4,���%��Q�ސ���Yo.�^ɮ���p�ɻ�L�JC��/����h��Э�(RM�9D�
var changeAddress;
changeAddress = false;
function checkCategories(parentId) {
$('input[name$="postcategorycollection"]').each(function () {
if ($(this).val() == parentId) {
$(this).attr("checked", true);
checkCategories($(this).attr("data-parent-id"));
}
});
}
function unCheckCategories(categoryId) {
$('input[name$="postcategorycollection"]').each(function () {
if ($(this).attr("data-parent-id") == categoryId) {
$(this).attr("checked", false);
unCheckCategories($(this).val());
}
});
}
$(document).on("keypress keyup", "#post-title", function () {
if (!changeAddress) {
$("#post-address").val($("#post-title").val());
}
});
$(document).on("submit", "#post-form", function () {
$("#buttons :submit").attr("disabled", true);
});
function autoSave() {
currentContent = $("body", $("iframe").contents()).text().trim();
if(oldContent != currentContent) {
$("#post-form").submit();
oldContent = currentContent;
}
}
function onAutoSaveBegin()
{
$("#post-form").attr("data-ajax", true);
$(".validation-summary-errors").addClass("validation-summary-valid").removeClass("validation-summary-errors");
$(".input-validation-error").removeClass("input-validation-error");
$("#auto-save-result").removeClass("warning-message");
$("#auto-save-result").text("در حال ذخیره خودکار ...");
$("#buttons :submit").attr("disabled", true);
}
function onAutoSaveSuccess(e)
{
if (e.success) {
$("#auto-save-result").text("ذخیره خودکار در" + " " + e.time);
if ($.isNumeric(e.ePostId)) {
$("#post-form").attr("action", "/amoozeshapk/post/edit/itemid".replace("itemid", e.ePostId));
$("#post-id-address").text(e.postId);
}
$("#buttons :submit").removeAttr("disabled");
}
else {
onAutoSaveFailure();
}
}
function onAutoSaveFailure()
{
$("#auto-save-result").addClass("warning-message");
$("#auto-save-result").text("خطا در ذخیره خودکار");
$("#buttons :submit").removeAttr("disabled");
}
$(document).ready(function () {
var config = new HTMLArea.Config();
config.width = "690px";
config.height = "240px";
HTMLArea.replace("post-content", config);
setTimeout("oldContent = $('body', $('iframe').contents()).text().trim()", 5000);
interval = setInterval(autoSave, 60000);
$("#tabs a").click(function() {
$("#" + $("#tabs .selected").attr("id") + "-box").hide();
$("#tabs .selected").removeClass("selected");
$(this).addClass("selected");
$("#" + $(this).attr("id") + "-box").show();
//$("#" + $(this).attr("id") + "-box").find(":input:text:visible:first").focus();
});
var t = new $.TextboxList("#post-tag", {
prefix: "tag-box",
max: 10,
unique: true,
plugins: { autocomplete: { placeholder: null } }
});
$("#publish, #draft, #pending").click(function() {
$("#post-form").attr("data-ajax", false);
$("#publish-type").val($(this).attr("data-publish-type"));
});
$("#publish-persian-date").mask("9999/99/99");
$("#publish-persian-date").calendarsPicker({ calendar: $.calendars.instance("persian", "fa"), alignment: "topLeft" });
$("#publish-time").mask("99:99");
$("#custom-date").click(function() {
$("#publish-date input").attr("disabled", false);
$("#date-address").text($("#publish-persian-date").val());
$("#publish-persian-date").calendarsPicker("enable");
});
$("#now-date").click(function() {
$("#publish-date input").attr("disabled", true);
$("#date-address").text("1393/12/21");
});
$("#publish-persian-date").keyup(function() {
$("#date-address").text($("#publish-persian-date").val());
});
$("#remove-password").click(function() {
$("#password").val("");
});
$("#show-settings").click(function() {
$("#settings").show();
$(this).hide();
});
$("#post-address").keydown(function() {
changeAddress = true;
});
$('input[name$="postcategorycollection"]').click(function() {
if ($(this).is(":checked")) {
checkCategories($(this).attr("data-parent-id"));
}
// else {
// unCheckCategories($(this).val());
// }
});
var autocomplete = t.plugins["autocomplete"];
autocomplete.setValues([ ]);
});
("enable");
});
$("#now-date").click(function() {
$("#publish-date input").attr("disabled", true);
$("#date-address").text("1393/12/21");
});
$("#publish-persian-date").keyup(function() {
$("#date-address").text($("#publish-persian-date").val());
});
$("#remove-password").click(function() {
$("#password").val("");
});
$("#show-settings").click(function() {
$("#settings").show();
$(this).hide();
});
$("#post-address").keydown(function() {
changeAddress = true;
});
$('input[name$="postcategorycollection"]').click(function() {
if ($(this).is(":checked")) {
checkCategories($(this).attr("data-parent-id"));
}
// else {
// unCheckCategories($(this).val());
// }
});
var autocomplete = t.plugins["autocomplete"];
autocomplete.setValues([ ]);
});
仯埯귴㷵ଵ艙훙晭竗ᙷ웜닶綦턟珮䅿←萀㷵㼛䪝᷒ᮛ᥄ꄑ㫥罈틿嗵颟鿞恮⮫嵙횼歬흚����㇆궞连ૼ䧐㠥��飓痣䡮㌄൭༎罸嶩늖뒽课���㗽Ꙫ㍠��펙皍쉒Ὶ듩ċ휁澌嗰��何횧ÿ귀鉔赓끓졾볜鞎䙥햯枫涢떽ܑ��庛ÿ텓뽽濰垹뵭騪ꧬዝ巊絣휇㑆ꗮ폒ꧯﶬ⨋絳ヲ숀㕺뛺蔮鐤擤퉓젪��巓졫㶇ᄌ궹㙻龱暣ꇯ��ﱟ潤洸꿅㰶啙哕×ꅧ䅳᭥ᶲ��ÿ濑狾닅┳毌鶱嘖십皲ﺱ뇗��꿽死⥉짌ꃎ뼾ꑏ筛ㆫ쵛贡蝠뽙��㘽ᓳ滨뀪蝴䷗詮紨ཌ쀂Ίꅧ뺸횽ÿ輵�䬀墿꩖ꮫ俍��푧��ퟘ訆㻋ẃ뫣寛睳촲ﺴヘ촀ᓻꬪ횱䛝㓷됆씵쎡督嬛뎟鯴䔿軾嗏ꐩ鳬嘟溛럨낆됽숵뒷묽��ﵚ㿽喴ꍟꔿ吣雞忌熔Ლ娃ᣪ৻瘣飭棟迾■谀憔쫵旫昖恗Ḏ풇䁳慫ອ啭��ÿトఀ檝쫌ߪ뗨麵省៧僚��俺꿸��ᇾ∕편徚熕艼篙ᬩ붛每��뛭龭��鉾ㄫ麰퇦䵯瑭㕣掶跾趥ໝ浵銭��걝ﶳ瘝ÿ劣电틆详뉨鳫끉놇ࢵᡣ꘩畮嫛Ί뻯펯ⅿꜹ螬펻邾窴玍귈璌殿圝��痱﹕░��饙䕻㶽훐뤸뇷ࢲ��摕㞗�ﵿᩆ旯奵ꚿ蘽壀쨚毁梪��汙ᵽ뛻Ὼ忠臕孟䭳믕虼Ꜷ沸珬珝㴷𥳐⭫ÿa��뱾鷚��쿱닦䯣蛷᧽絳꽽�퀀乁䦋ԭ᷂輚鴂聅趵㭩ḗ櫾⥉폿哵䦒⤥鈤䩉⑉劒䦒鰆沼굅梷阄မ姭Ữ瓟ꐤ⇉ꩽ䶏⬛༮虷뛃鰜捤֛홢ଛٷ፮皶��믻觽∩鍉ꖤ鈤⥉⑉䪒䥒鈤゚鉔깕韗烓躭났ʇ磨휤᭣궹툀ÿ║制潙鷩뽐柔ⵒ��휀ᬬ翷뭶珓ÿ黺叆뿼뉕㨱媓��凶⥋㷴땗뇏쇅麿뚪ㅤ��㿋ﱍ탯绶⦕䧕㡑䒽짚槉鶢㙚雅朻㺦揑ꑏ竖ꖟ歳迾雺扄盵웖뷽낎홖揙鶨ා彫填ꯋ᭫썣ÿ㿡틢ꁓ麨톇뚝煰臽뿁暢チ츀븵ꏟ��㏒ꨭᄎ栀퍚뭜䅴��맧돮饣궺涶ὥ魁猿槴폟㊳렪ꢻ綻緛퐧훐湬❽돯翨Ⓜ�픩Ʝ퉡걫럩ቨꍟ潣珒鎜䟺녉떵瓸됹僫뀵㏬殾ﯶ︽ÿ��鶁쭳矎盛툶賝⳱��忠횳첵쿘뇐姨⌽��ꪣ蹛ꯊ䧴婫ⱬ塳ị��뾽��ﱖﵻ퀿쮾齿淾㜥烱瀰ﶷẏ羼㝒颊ㄙ矴Ŭ奘嶹ﰶ벗뻽����尛ᨶᵋ鯴웘��ﻩ��ᇾꗶᕎ��ὓﮞ༮ϵ녶㖭ᵔ畭랆綻⦩䧒㽣枧ﶚ残㔷雁吆筬볙펳᯽顿ᕥÿ㎑쥪墸퓳㺆еᗮ뮱趥᷵��ヲꄀꜞᯨꓷ喧鸥毬뚬럧픽ퟘ䖂葡脱殎넪툿ꗽﵻᘨ��貍��黕翌Ტ헦ジ糖夦��䯯뛳馤ڠ㢀㔂㫥罊헿嗵햛퉝쉜̃톞齠鳦��擖鵻폼侽㿧ᛡ꾒皕筝쵾⾎蚗茛즽윩쟇뛺䯪갨馵흷櫫雦뚹繛Ỏᾍ깬뇊俛햳淾פֿ갾酟땠ꏞ휺妗ߩ혖ﻍ繃凗繝킟暳틏깒濗畕몖䫜廛槂ꡯ贋㺍哟■뾹磊䞯ᇾ뱆낮卽乧겭屫髺ԯ磮��魛竩䶿ﯪÿ鋖禚﨏禷⎫㤨匔媼歫殣鬿躭煻ÿﱉ돗鿴��銣ꯏ掷镛㵦ಷ椬셥뷗柬峨蛗둺���䜀⯵ឧ덝꼣䔼员伳斥郤웲蜲ﲻ댩㗽≴闙嫕ϫ驰ퟰᣖ쁅慮ﱮﮗ瞫棨㽻ﮜ嬽䧭湎㽵꽗馽⪿嫻蟗됤晿ꃟ㇗ʾ밀ᦴ뤠ഈ铠妴趏즊㶋~縀ᣩ0郀臰ࣂ竷훛涃쿫덥趍뙓䄓㴷왆왜돣婣崟⢶켲ⶬ掯禮┮뷮屜泆㕦춿睏䟸ᖱ場ࡺ��㯌獛��礭鎪럢뗯ÿ륨ꆿÿ鈉ÿ裴뾏��諬ꍮ稠㻤ෛό殤鱋폏鬵늶叟쟒」꤀ꕟ뭢뵥��슮᧻蹕㿀졗᭻﹛뾗㿴翱ᄒ䨀缯ߖ滑燊뱪ꁇ꼍佳��鿪뭁��ÿ+渀꒠餻뙀䪏紘蘹ꪺ緵軑ꯇ換枿鿳䞽��載巣��匠㙫蹥Ⱬ揟뼲ﱅ櫽忛鷗��쒪ﶪꂿ쬂昬컭瓾壺��泩㿺叡☣盛鱔均⊻浭ꞁ壴쫾뗪Ꞿ寸ꖬ㤥㗘㏴䆑ꞣ뫛ﮰﯜ뛪票瞛뵭ﶮ흢쾺㿦ﹳᨭ㪫倖Ὦ곙垴䎐斛逶⌭緕��淶カ圀毝ﻟ安㷆홱掦孕֚꺬��괝絎漴퍟쓼嬆ꇵ殻㙶젛뙮��贄풍洌귛⏽⥻ÿ橉扊큟눳犊뜬��矜랺೬ﰾ힖寨뮵繶ﲓꔗ歂꺾軓��ᱛ깭뎟䭘ﶞꏾ��浭ﵻ佯뫹䖿ﻹ몚㫋臨ᡭ醙뚕녫뭤夸繝��콞Ꙋꐀ