Vergleich jscripts/general.js - 1.8.3 - 1.8.5

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 27Zeile 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 72Zeile 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 152Zeile 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 218Zeile 218

whoPosted: function(tid)
{


whoPosted: function(tid)
{

		MyBB.popupWindow("/misc.php?action=whoposted&tid="+tid);

		MyBB.popupWindow("/misc.php?action=whoposted&tid="+tid+"&modal=1");

	},

markForumRead: function(event)
{
var element = $(event);

	},

markForumRead: function(event)
{
var element = $(event);

		if(!element)

		if(!element.length)

		{
return false;
}

		{
return false;
}

Zeile 249Zeile 249
	{
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 283Zeile 284
	changeLanguage: function()
{
form = $("#lang_select");

	changeLanguage: function()
{
form = $("#lang_select");

		if(!form)

		if(!form.length)

		{
return false;
}

		{
return false;
}

Zeile 293Zeile 294
	changeTheme: function()
{
form = $("#theme_select");

	changeTheme: function()
{
form = $("#theme_select");

		if(!form)

		if(!form.length)

		{
return false;
}

		{
return false;
}

Zeile 341Zeile 342

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 373Zeile 374

$.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 381Zeile 382
				$(".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 577Zeile 579
			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 588Zeile 590
			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');