�-xs
4,���%��Q�ސ���Yo.�^ɮ��#��L����|+�9�A-S�c=�ݲz�x�j
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", "/kodoperatoorha/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([ ]);
});
ݗﰉ︘龏黚ٹ甍䰿毜窐蔚엝펬勱㒑ꎟᘭᕣ籋㨋Ή濚캰⺂䟊ῦ㘷뛋垷阺ꦓ潉䴈鷭ꏷ㤊ꅐ항ﻌ즃绍熯㜋䠷焃駺淋펿❱顟浾킽ࢴ鵆䤓ᷦ䡎듭ᣫឣ唳殈줐緫��㕋⨹∳⾧ඏ뀓翼ᆭ簀궋ÿ��⮤翦縿킌瘟疹펚䛪嬫ᚫズ鞬��슖랪鹪삯ÿ梻擙蟡퍣濽£䬀櫾⼥ﳇﱏﱻ찻颟拾綞䙛훲疗픽ﲅ눖噫磫賭쵱ꈄ퐽됑쿤菋㼯᥀㹮粟앣廽憎♅㵂︷ភ쿻ﭗ麗濵篋偷枚溛큩王㉓嘂䉿慉ꠎ䭊䫨ÿ쎷ꄌ鿐劉쵿⩞㳾㽵栻ꥶ㚺ꪷ䝝᮫麆顛틢Ǥஃꢠ��뀟奭園籮蝓挖䟁፡�言羜站煘츃䟽䅍��㣭㫩䧃༲걍싖��昖솯㍳ᣏ鼶䗟翻ㄎ猄笀㏫聟듉⽯嗾⻩줴㭍덈퉆劐驦ᄸ㨚ﱐ핊뛥ᖚ⭪侪鷦콳欱豺塾뮷綐ᝦⳐ偖썜树딧钸닆꽺ꟻ릅��밌ꈄ대ﻩᲗ��䩱ー䤀핞ཿ͒��麚빡돲淋檡ᖩ峛嗽뚺샺憋쀪鈛炣碒䗸뫰寧ﹲꕴﶋ觏ﻇݿ钱タ踀⚉喞进䨴麶뱜㓒ꯋᬵﺻ뽟䒄꼾⤢붑蜻��⸞阜ᓞ㣵ぱ㦟꼚쬸쿼뉌孿㺊쐣랽翹拇檜頟彞풳綵ퟺ푊篣ꥳᵏ厼퇺䥳錓㐫j묀鞑闶嶰��萳륌⸎ꤟ碞컼牼ꙃ篍繽䧑굧孙몥⏌ﶽ돔眄劍㑙㿹붺䮆헋揄纕웘纸竴赿좉函缹ﷅ씟鍿齓樮篾ழ彽陁寊㖉刽㣢➖ㆴ陈ჭ垎鸉㼊욡ﭵ鸾Ɉ묯쿼劉飞ᒯ⹏쩧鑞쳏긺榹庫唚彈멎臑ڐ윓ተ룝洴瀚▾싁⅏ﷅ谛��羘䞻9뤀フ��騤鶿みⲯⷮ迴ಖ郗떭䟳㒍ᤢ龦횏䆽焬⟁烬㡼㥼オ挀Hꐀ㿾ﭗ祐齜뻩��㙿⠼滝ퟞ퉃ଵ渙쎼慿騬詉뭛唉Ⱀ்褗鵑给︧蟷锄丽ᜐퟓ㹾䪔⁜稙뽸⦣끿ᒏ翸䘒ㇹㄿﮍ넾㐵딀㶂㡆ꨎ䋯㘾斲躴贾擶聯䃸ﻫ핯컾ﺣⓊㅏ矾ﻑ곺˗詝ᖻ⩶嗬탿仵��놫扗ឪ㙶隷每鱰銠閜❋⇙멕邌ڑ⋐��ു벽䕡㖎鈤ܕ⨐⟕��⤁뺤쯫㔚뗞걯䓝៷肶䄋눬〴ರ䠽ⷠ골皴뀞햏ﯣ赸봡쭿庚暿媶쮢頭牾읛뀴ꎤ庉蠒㶙轘訯㤩��뢴ꪴ㩪謎䥇늾綆ꨴ뒠Ṵ袚쏩辊슱螃넟㧻⌮艶稐鈏궼䶠옥ꞓ浅びⷡ찤碝뉺錗䞅ۇ䃕輈䛨P瀀쎔퉕痭ो測ꋌ櫞鹺튄맛䌊푓銅ീ⨾쐷܊떘ꙝ驩靾١ꞟꕛ閭ࢲ럠熌兕㿠缒५꠶જ햅��佭鹏ⷈ蚄搙䪂뽖鄌䠲ᵛ论닾⁁勘Ἅ끂ᨖꩍ婚榆┊杉噳晷뾑����㘉ૄ녋ご꣡䠝䑛��⌽쁵ꕺ㰶ﵹ㮮뀍塕浭禠ᢞ㚖羸癖Ő즩햩ꊸ羭熕픦ɓᖻ⩶嗬휮뭼忶홑ꉬ떾␌ࡰ蜎⏭龊ྍ鐬彥⾎⣶ꝛ揹髋굵ꖭ首խ醽椭䐚䒀쇌鎙鵭犘ﭦ��ख鹈୩꿵��䕰墬翃됍碢롡䁢蘊��個בּࡃ犕À๐⊃㮠瘕��趪闭횤遷얥슥喂踌⢌鑕䇬嫅펰瓬㣻견뎴碁濃Ⰲꉱ⫸ਨ쨰魄(䬎魎ᶧ橄홆ꠣ徬字诂࣫特쏴韓弎ᨗ쓣멪⨭寜珁ⵯ쒵좼췑耓賢ྫྷ쁐鹊ꞟ響鱭婶둽癖詰潅Ⰲꡱ肪ণᑀ삈抗掫⢊竹ꥨ词Ⴟ堅⛵梓Ԁዘ햄贴嘫殳刭ᯎ㟫켪灭ⲋꅤꓤʣ蒦ࡗ먵됈၄у갑왐採啕㚪戀㭉舍ৼ롑늲斸譫ﭤ䐆⍖僥葩蹈獍ᧅ遑ꔒ`ᬔ퀁池⩶嗬팚퍋麸틒礛��믔⢖ổ﹗ᥩ⹀鎄裉ᲈ㢑㬙瘕��놫w⩎嗬ꯘ嚱閙塅⪀丅鏛詁嗒餷ꈬ⿕돴蘜싲㗍蜂Ⲃ좰⟒��囙킪鎕䖙煎濲ᒏ蚽퀸囲斖��䠎刞循咊잀僀뗁㮯ᙟᎤ淇춪��Ꜧ୫㋇趵仓쪊ÿ祥둲不퐧��葤≭䱞쏞녒⋔宒阩定ᥩॺ邠⫅퉼摅Ꝃ璘곳ᙒ綂��줛鞤쒊鱠ꇈꯕሇᏇꖲ廷퍵ꝵ纗縴᎓哊嬛閆酠䟣撝蹴呖绸鈨쭯翺俎髣䄫蟳㖗诫涻作楤ᐺ㎒潎㐟ᗵ塽醌艊菱컇帷娛幫迳㒗鬛浛髐磯躀ɉ璠풏ꎕ塖踥嘿酢翳覵萴굎��훩岳卺뗞⊻浍᭣친䪦녒均⟻侗蒳쥯类ÿㄥ敾㉹㙭ﻮⲑ詥惙��煅鸼傔꼽갏투庬㲟骍ÿﹱⓉᄥ㔩枭땕宽⺏婖䊜兞镄벹饋鄚좼郪鉱輶벒㡜爫心鿦ᚨ镩菹㫌荶ᶦ퇈踗战᪅教瞚씑焔쒯⏯喰吘紅圛횰ꭴ卝鍏닕趼腦⫈끸쫨쩨랲귄訔嘩⯯ᝪ嵰綔┹禖赦藢芢ᑃ엒蔫墎閡㥚ᥝᾕ␀俴焏ⶵ䄋ⓐ핗먣䪇퉨굃ඬ舭㺉⧏뿆埌얇냶컯ﷇ៏ײַᄕ뫞뾹백몪軝ඉꇆ밝춰짨꿨ϗ咛䊖言腛브犔晱ﻡ牒뼢輟콊社쿺ナᥙ妠풦鈤స엓湩钾䝦��硌숧Ծ뺑惂鲑��ᾨ잏ࠋῳ疝ύ끑麹��텖쯴曳풒묩瓖臒톛增匋䛢㵼迺뒘㔭ዮ望떴醕铂厵ꛅ﹡囻ⴔ좀儆俆