Vergleich jscripts/inline_edit.js - 1.8.0 - 1.8.4

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 1Zeile 1
var inlineEditor = {

var inlineEditor = {

 
	timeouts: [],


	init: function()
{
$(document).ready(function()

	init: function()
{
$(document).ready(function()

Zeile 6Zeile 8
			inlineEditor.bindSubjects();
});
},

			inlineEditor.bindSubjects();
});
},





	bindSubjects: function()
{
$('.subject_editable').each(function()

	bindSubjects: function()
{
$('.subject_editable').each(function()

Zeile 43Zeile 45
						else
{
// Change subject

						else
{
// Change subject

							$(this).html('<a href="showthread.php?tid=' + tid + '">' + values.subject + '</a>');

							$(this).html(values.subject);

						}
}


						}
}


Zeile 64Zeile 66
				
// We may click again in the textbox and we'd be adding a new (invalid) clone - we don't want that!
if(!$('#tid_' + tid + '_temp').length)

				
// We may click again in the textbox and we'd be adding a new (invalid) clone - we don't want that!
if(!$('#tid_' + tid + '_temp').length)

					$(this).clone().attr('id','tid_' + tid + '_temp').css('display','none').appendTo("body");

setTimeout(inlineEditor.jeditableTimeout, 700, tid);

					$(this).clone().attr('id','tid_' + tid + '_temp').hide().appendTo("body");

inlineEditor.timeouts[tid] = setTimeout(inlineEditor.jeditableTimeout, 700, tid);

			});

			});





			$(this).bind('mouseup mouseleave', function()
{

			$(this).bind('mouseup mouseleave', function()
{

				// Clear all time outs
var wid = window.setTimeout(function() {}, 0);

while(wid--)
{
window.clearTimeout(wid); // will do nothing if no timeout with id is present
}

				window.clearTimeout(inlineEditor.timeouts[tid]);







			});
});


			});
});