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 171 | Zeile 177 |
---|
if(v == true) { var form = $("<form />",
|
if(v == true) { var form = $("<form />",
|
{
| {
|
method: "post", action: "reputation.php?action=delete", style: "display: none;" });
|
method: "post", action: "reputation.php?action=delete", style: "display: none;" });
|
form.append(
| form.append(
|
$("<input />", { name: "rid", type: "hidden", value: rid
|
$("<input />", { name: "rid", type: "hidden", value: rid
|
})
| })
|
);
if(my_post_key)
| );
if(my_post_key)
|
Zeile 216 | Zeile 222 |
---|
return false; },
|
return false; },
|
whoPosted: function(tid)
| whoPosted: function(tid, sortby)
|
{
|
{
|
MyBB.popupWindow("/misc.php?action=whoposted&tid="+tid+"&modal=1");
| 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)
| },
markForumRead: function(event)
|
Zeile 475 | Zeile 514 |
---|
var Cookie = { get: function(name)
|
var Cookie = { get: function(name)
|
{ name = cookiePrefix + name; return $.cookie(name);
| { name = cookiePrefix + 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 533 |
---|
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 548 |
---|
path: cookiePath, domain: cookieDomain };
|
path: cookiePath, domain: cookieDomain };
|
return $.removeCookie(name, options);
| return Cookies.remove(name, options);
|
} };
| } };
|
Zeile 632 | Zeile 672 |
---|
var lang = {
};
|
var lang = {
};
|
| /* add keepelement to jquery-modal plugin */ (function($) { if(typeof $.modal != 'undefined') { $.modal.defaults.keepelement = false;
$.modal.prototype.oldCloseFunction = $.modal.prototype.close; $.modal.prototype.close = function() { this.oldCloseFunction();
// Deletes the element (multi-modal feature: e.g. when you click on multiple report buttons, you will want to see different content for each) if(!this.options.keepelement) { this.$elm.remove(); } }; } })(jQuery);
|
MyBB.init();
| MyBB.init();
|