Zeile 104 | Zeile 104 |
---|
{ name: "action", type: "hidden",
|
{ name: "action", type: "hidden",
|
value: "do_editevent"
| value: "do_deleteevent"
|
}) );
| }) );
|
Zeile 216 | Zeile 216 |
---|
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) { var element = $(event); if(!element.length)
|
},
markForumRead: function(event) { var element = $(event); if(!element.length)
|
{
| {
|
return false; } var fid = element.attr("id").replace("mark_read_", "");
| return false; } var fid = element.attr("id").replace("mark_read_", "");
|
Zeile 243 | Zeile 276 |
---|
MyBB.forumMarkedRead(fid, request); } });
|
MyBB.forumMarkedRead(fid, request); } });
|
},
| },
|
forumMarkedRead: function(fid, request) { if(request == 1) { var markreadfid = $("#mark_read_"+fid); if(markreadfid.hasClass('subforum_minion'))
|
forumMarkedRead: function(fid, request) { if(request == 1) { var markreadfid = $("#mark_read_"+fid); if(markreadfid.hasClass('subforum_minion'))
|
{
| {
|
markreadfid.removeClass('subforum_minion').addClass('subforum_minioff'); } else
| markreadfid.removeClass('subforum_minion').addClass('subforum_minioff'); } else
|
Zeile 269 | Zeile 302 |
---|
text = text.replace(/ /g, " "); text = text.replace(/"/g, "\""); text = text.replace(/&/g, "&");
|
text = text.replace(/ /g, " "); text = text.replace(/"/g, "\""); text = text.replace(/&/g, "&");
|
return text; },
| return text; },
|
HTMLchars: function(text) {
| HTMLchars: function(text) {
|
Zeile 475 | Zeile 508 |
---|
var Cookie = { get: function(name)
|
var Cookie = { get: function(name)
|
{ name = cookiePrefix + name;
| { name = cookiePrefix + name;
|
return $.cookie(name); },
set: function(name, value, expires)
|
return $.cookie(name); },
set: function(name, value, expires)
|
{ name = cookiePrefix + name; if(!expires) {
| { name = cookiePrefix + name; if(!expires) {
|
expires = 315360000; // 10*365*24*60*60 => 10 years }
expire = new Date(); expire.setTime(expire.getTime()+(expires*1000));
|
expires = 315360000; // 10*365*24*60*60 => 10 years }
expire = new Date(); expire.setTime(expire.getTime()+(expires*1000));
|
|
|
options = { expires: expire, path: cookiePath,
|
options = { expires: expire, path: cookiePath,
|
domain: cookieDomain
| domain: cookieDomain, secure: cookieSecureFlag == true,
|
};
return $.cookie(name, value, options);
| };
return $.cookie(name, value, options);
|
Zeile 503 | Zeile 537 |
---|
unset: function(name) { name = cookiePrefix + name;
|
unset: function(name) { name = cookiePrefix + name;
|
|
|
options = { path: cookiePath, domain: cookieDomain
| options = { path: cookiePath, domain: cookieDomain
|
Zeile 528 | Zeile 562 |
---|
}
expander.click(function()
|
}
expander.click(function()
|
{
| {
|
controls = expander.attr("id").replace("_img", ""); expandables.expandCollapse(this, controls); });
| controls = expander.attr("id").replace("_img", ""); expandables.expandCollapse(this, controls); });
|
Zeile 632 | Zeile 666 |
---|
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();
|