Zeile 15 | Zeile 15 |
---|
/* Create the Check All feature */ $('[name="allbox"]').each(function(key, value) {
|
/* Create the Check All feature */ $('[name="allbox"]').each(function(key, value) {
|
$(this).change(function() { var checkboxes = $(this).closest('form').find(':checkbox'); if($(this).is(':checked')) { checkboxes.prop('checked', true); } else { checkboxes.removeAttr('checked');
| var allbox = this; var checked = $(this).is(':checked'); var checkboxes = $(this).closest('form').find(':checkbox'); checkboxes.change(function() { if(checked && !$(this).prop('checked')) { checked = false; $(allbox).prop('checked', checked);
|
}
|
}
|
| }); $(this).change(function() { checked = $(this).is(':checked'); checkboxes.prop('checked', checked);
|
}); });
| }); });
|
Zeile 38 | Zeile 44 |
---|
mark_read_imgs.each(function() { var element = $(this);
|
mark_read_imgs.each(function() { var element = $(this);
|
if(element.hasClass('forum_off') || element.hasClass('forum_offlock') || element.hasClass('forum_offlink') || element.hasClass('subforum_minioff') || element.hasClass('subforum_miniofflock') || element.hasClass('subforum_miniofflink') || (element.attr("title") && element.attr("title") == lang.no_new_posts)) return;
| if(element.hasClass('forum_off') || element.hasClass('forum_offclose') || element.hasClass('forum_offlink') || element.hasClass('subforum_minioff') || element.hasClass('subforum_minioffclose') || element.hasClass('subforum_miniofflink') || (element.attr("title") && element.attr("title") == lang.no_new_posts)) return;
|
element.click(function() {
| element.click(function() {
|
Zeile 79 | Zeile 85 |
---|
$.get(url, function(html) { $(html).appendTo('body').modal(options);
|
$.get(url, function(html) { $(html).appendTo('body').modal(options);
|
});
| });
|
},
deleteEvent: function(eid)
| },
deleteEvent: function(eid)
|
Zeile 123 | Zeile 129 |
---|
form.append( $("<input />", {
|
form.append( $("<input />", {
|
name: "eid", type: "hidden", value: eid }) );
form.append( $("<input />", { name: "delete",
| name: "eid",
|
type: "hidden",
|
type: "hidden",
|
value: 1 }) );
$("body").append(form);
| value: eid }) );
form.append( $("<input />", { name: "delete", type: "hidden", value: 1 }) );
$("body").append(form);
|
form.submit(); } }
| form.submit(); } }
|
Zeile 146 | Zeile 152 |
---|
},
reputation: function(uid, pid)
|
},
reputation: function(uid, pid)
|
{
| {
|
if(!pid) { var pid = 0; }
MyBB.popupWindow("/reputation.php?action=add&uid="+uid+"&pid="+pid+"&modal=1");
|
if(!pid) { var pid = 0; }
MyBB.popupWindow("/reputation.php?action=add&uid="+uid+"&pid="+pid+"&modal=1");
|
},
| },
|
viewNotes: function(uid)
|
viewNotes: function(uid)
|
{
| {
|
MyBB.popupWindow("/member.php?action=viewnotes&uid="+uid+"&modal=1");
|
MyBB.popupWindow("/member.php?action=viewnotes&uid="+uid+"&modal=1");
|
| },
getIP: function(pid) { MyBB.popupWindow("/moderation.php?action=getip&pid="+pid+"&modal=1"); },
getPMIP: function(pmid) { MyBB.popupWindow("/moderation.php?action=getpmip&pmid="+pmid+"&modal=1");
|
},
deleteReputation: function(uid, rid)
| },
deleteReputation: function(uid, rid)
|
Zeile 194 | Zeile 210 |
---|
name: "my_post_key", type: "hidden", value: my_post_key
|
name: "my_post_key", type: "hidden", value: my_post_key
|
}) ); }
| }) ); }
|
form.append( $("<input />", {
| form.append( $("<input />", {
|
Zeile 210 | Zeile 226 |
---|
$("body").append(form); form.submit(); }
|
$("body").append(form); form.submit(); }
|
} });
| } });
|
return false;
|
return false;
|
},
whoPosted: function(tid) { MyBB.popupWindow("/misc.php?action=whoposted&tid="+tid+"&modal=1"); },
markForumRead: function(event)
| },
whoPosted: function(tid, sortby) { var sort = "", url, body;
if(typeof sortby === "undefined") { sortby = ""; }
if(sortby == "username") { sort = "&sort=" + sortby; } url = "/misc.php?action=whoposted&tid="+tid+sort+"&modal=1";
// if the modal is already open just replace the contents if($.modal.isActive()) { // don't waste a query if we are already sorted correctly if(sortby == MyBB.whoPostedSort) { return; }
MyBB.whoPostedSort = sortby;
$.get(rootpath + url, function(html) { // just replace the inner div body = $(html).children("div"); $("div.modal").children("div").replaceWith(body); }); return; } MyBB.whoPostedSort = ""; MyBB.popupWindow(url); },
markForumRead: function(event)
|
{ var element = $(event); if(!element.length)
| { var element = $(event); if(!element.length)
|
Zeile 257 | Zeile 306 |
---|
else { markreadfid.removeClass('forum_on').addClass('forum_off');
|
else { markreadfid.removeClass('forum_on').addClass('forum_off');
|
}
| }
|
markreadfid.css("cursor", "default").attr("title", lang.no_new_posts); } },
| markreadfid.css("cursor", "default").attr("title", lang.no_new_posts); } },
|
Zeile 477 | Zeile 526 |
---|
get: function(name) { name = cookiePrefix + name;
|
get: function(name) { name = cookiePrefix + name;
|
return $.cookie(name);
| return Cookies.get(name);
|
},
set: function(name, value, expires) { name = cookiePrefix + name;
|
},
set: function(name, value, expires) { name = cookiePrefix + name;
|
if(!expires)
| if(!expires)
|
{ expires = 315360000; // 10*365*24*60*60 => 10 years }
| { expires = 315360000; // 10*365*24*60*60 => 10 years }
|
Zeile 494 | Zeile 543 |
---|
options = { expires: expire, path: cookiePath,
|
options = { expires: expire, path: cookiePath,
|
domain: cookieDomain
| domain: cookieDomain, secure: cookieSecureFlag == true,
|
};
|
};
|
return $.cookie(name, value, options);
| return Cookies.set(name, value, options);
|
},
unset: function(name)
| },
unset: function(name)
|
Zeile 508 | Zeile 558 |
---|
path: cookiePath, domain: cookieDomain };
|
path: cookiePath, domain: cookieDomain };
|
return $.removeCookie(name, options);
| return Cookies.remove(name, options);
|
} };
| } };
|