Zeile 27 | Zeile 27 |
---|
// Initialise "initial focus" field if we have one var initialfocus = $(".initial_focus");
|
// Initialise "initial focus" field if we have one var initialfocus = $(".initial_focus");
|
if(initialfocus.length > 0)
| if(initialfocus.length)
|
{ initialfocus.focus(); }
| { initialfocus.focus(); }
|
Zeile 72 | Zeile 72 |
---|
popupWindow: function(url, options, root) {
|
popupWindow: function(url, options, root) {
|
if(!options) options = { fadeDuration: 250, zIndex: 5 }
| if(!options) options = { fadeDuration: 250, zIndex: (typeof modal_zindex !== 'undefined' ? modal_zindex : 9999) }
|
if(root != true) url = rootpath + url;
| if(root != true) url = rootpath + url;
|
Zeile 104 | Zeile 104 |
---|
{ name: "action", type: "hidden",
|
{ name: "action", type: "hidden",
|
value: "do_editevent"
| value: "do_deleteevent"
|
}) );
| }) );
|
Zeile 152 | Zeile 152 |
---|
var pid = 0; }
|
var pid = 0; }
|
MyBB.popupWindow("/reputation.php?action=add&uid="+uid+"&pid="+pid);
| 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);
| MyBB.popupWindow("/member.php?action=viewnotes&uid="+uid+"&modal=1");
|
},
deleteReputation: function(uid, rid)
| },
deleteReputation: function(uid, rid)
|
Zeile 216 | Zeile 216 |
---|
return false; },
|
return false; },
|
whoPosted: function(tid)
| whoPosted: function(tid, sortby)
|
{
|
{
|
MyBB.popupWindow("/misc.php?action=whoposted&tid="+tid);
| 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);
|
},
markForumRead: function(event) { var element = $(event);
|
if(!element)
| if(!element.length)
|
{ return false; }
| { return false; }
|
Zeile 249 | Zeile 282 |
---|
{ if(request == 1) {
|
{ if(request == 1) {
|
if($("#mark_read_"+fid).hasClass('subforum_minion'))
| var markreadfid = $("#mark_read_"+fid); if(markreadfid.hasClass('subforum_minion'))
|
{
|
{
|
$("#mark_read_"+fid).removeClass('subforum_minion').addClass('subforum_minioff');
| markreadfid.removeClass('subforum_minion').addClass('subforum_minioff');
|
} else {
|
} else {
|
$("#mark_read_"+fid).removeClass('forum_on').addClass('forum_off');
| markreadfid.removeClass('forum_on').addClass('forum_off');
|
}
|
}
|
$("#mark_read_"+fid).css("cursor", "default").attr("title", lang.no_new_posts);
| markreadfid.css("cursor", "default").attr("title", lang.no_new_posts);
|
} },
| } },
|
Zeile 283 | Zeile 317 |
---|
changeLanguage: function() { form = $("#lang_select");
|
changeLanguage: function() { form = $("#lang_select");
|
if(!form)
| if(!form.length)
|
{ return false; }
| { return false; }
|
Zeile 293 | Zeile 327 |
---|
changeTheme: function() { form = $("#theme_select");
|
changeTheme: function() { form = $("#theme_select");
|
if(!form)
| if(!form.length)
|
{ return false; }
| { return false; }
|
Zeile 341 | Zeile 375 |
---|
dismissPMNotice: function(bburl) {
|
dismissPMNotice: function(bburl) {
|
var pm_notice = $("#content").find("#pm_notice"); if(!pm_notice)
| var pm_notice = $("#pm_notice"); if(!pm_notice.length)
|
{ return false; }
| { return false; }
|
Zeile 373 | Zeile 407 |
---|
$.ajax({ type: "POST",
|
$.ajax({ type: "POST",
|
url: "reputation.php",
| url: "reputation.php?modal=1",
|
data: datastring, dataType: "html", success: function(data) {
| data: datastring, dataType: "html", success: function(data) {
|
Zeile 381 | Zeile 415 |
---|
$(".modal_"+uid+"_"+pid).fadeOut('slow', function() { $(".modal_"+uid+"_"+pid).html(data); $(".modal_"+uid+"_"+pid).fadeIn('slow');
|
$(".modal_"+uid+"_"+pid).fadeOut('slow', function() { $(".modal_"+uid+"_"+pid).html(data); $(".modal_"+uid+"_"+pid).fadeIn('slow');
|
| $(".modal").fadeIn('slow');
|
}); }, error: function(){
| }); }, error: function(){
|
Zeile 426 | Zeile 461 |
---|
} }, formatNoMatches: function () {
|
} }, formatNoMatches: function () {
|
return lang.select2_nomatches; },
| return lang.select2_nomatches; },
|
formatInputTooShort: function (input, min) { var n = min - input.length; if( n == 1) { return lang.select2_inputtooshort_single;
|
formatInputTooShort: function (input, min) { var n = min - input.length; if( n == 1) { return lang.select2_inputtooshort_single;
|
} else
| } else
|
{ return lang.select2_inputtooshort_plural.replace('{1}', n); }
| { return lang.select2_inputtooshort_plural.replace('{1}', n); }
|
Zeile 444 | Zeile 479 |
---|
if( n == 1) { return lang.select2_inputtoolong_single;
|
if( n == 1) { return lang.select2_inputtoolong_single;
|
} else {
| } else {
|
return lang.select2_inputtoolong_plural.replace('{1}', n); } }, formatSelectionTooBig: function (limit) { if( limit == 1)
|
return lang.select2_inputtoolong_plural.replace('{1}', n); } }, formatSelectionTooBig: function (limit) { if( limit == 1)
|
{
| {
|
return lang.select2_selectiontoobig_single;
|
return lang.select2_selectiontoobig_single;
|
}
| }
|
else { return lang.select2_selectiontoobig_plural.replace('{1}', limit); }
|
else { return lang.select2_selectiontoobig_plural.replace('{1}', limit); }
|
},
| },
|
formatLoadMore: function (pageNumber) { return lang.select2_loadmore; },
| formatLoadMore: function (pageNumber) { return lang.select2_loadmore; },
|
Zeile 476 | Zeile 511 |
---|
{ name = cookiePrefix + name; return $.cookie(name);
|
{ name = cookiePrefix + name; return $.cookie(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 }
|
|
|
expire = new Date(); expire.setTime(expire.getTime()+(expires*1000));
options = { expires: expire, path: cookiePath,
|
expire = new Date(); expire.setTime(expire.getTime()+(expires*1000));
options = { expires: expire, path: cookiePath,
|
domain: cookieDomain
| domain: cookieDomain, secure: cookieSecureFlag == true,
|
};
return $.cookie(name, value, options);
| };
return $.cookie(name, value, options);
|
Zeile 577 | Zeile 613 |
---|
if(expandedItem.is(":hidden")) { expandedItem.toggle("fast");
|
if(expandedItem.is(":hidden")) { expandedItem.toggle("fast");
|
element.attr("src", element.attr("src").replace("collapse_collapsed.png", "collapse.png"))
| element.attr("src", element.attr("src").replace(/collapse_collapsed\.(gif|jpg|jpeg|bmp|png)$/i, "collapse.$1"))
|
.attr("alt", "[-]") .attr("title", "[-]"); element.parent().parent('td').removeClass('tcat_collapse_collapsed');
| .attr("alt", "[-]") .attr("title", "[-]"); element.parent().parent('td').removeClass('tcat_collapse_collapsed');
|
Zeile 588 | Zeile 624 |
---|
else { expandedItem.toggle("fast");
|
else { expandedItem.toggle("fast");
|
element.attr("src", element.attr("src").replace("collapse.png", "collapse_collapsed.png"))
| element.attr("src", element.attr("src").replace(/collapse\.(gif|jpg|jpeg|bmp|png)$/i, "collapse_collapsed.$1"))
|
.attr("alt", "[+]") .attr("title", "[+]"); element.parent().parent('td').addClass('tcat_collapse_collapsed');
| .attr("alt", "[+]") .attr("title", "[+]"); element.parent().parent('td').addClass('tcat_collapse_collapsed');
|
Zeile 630 | 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();
|