phpBB

Code Changes

File: styles/prosilver/template/forum_fn.js

  Unmodified   Added   Modified   Removed
Line 57Line 57

jQuery('#' + id + ' input[type=checkbox][name]').each(function() {
var $this = jQuery(this);


jQuery('#' + id + ' input[type=checkbox][name]').each(function() {
var $this = jQuery(this);

		if ($this.attr('name').substr(0, name.length) === name) {

		if ($this.attr('name').substr(0, name.length) === name && !$this.prop('disabled')) {

			$this.prop('checked', state);
}
});

			$this.prop('checked', state);
}
});

Line 192Line 192
		r.moveToElementText(e);
r.select();
}

		r.moveToElementText(e);
r.select();
}

}

/**
* Play quicktime file by determining it's width/height
* from the displayed rectangle area
*/
function play_qt_file(obj) {
'use strict';

var rectangle = obj.GetRectangle();
var width, height;

if (rectangle) {
rectangle = rectangle.split(',');
var x1 = parseInt(rectangle[0], 10);
var x2 = parseInt(rectangle[2], 10);
var y1 = parseInt(rectangle[1], 10);
var y2 = parseInt(rectangle[3], 10);

width = (x1 < 0) ? (x1 * -1) + x2 : x2 - x1;
height = (y1 < 0) ? (y1 * -1) + y2 : y2 - y1;
} else {
width = 200;
height = 0;
}

obj.width = width;
obj.height = height + 16;

obj.SetControllerVisible(true);
obj.Play();

 
}

var inAutocomplete = false;

}

var inAutocomplete = false;

Line 304Line 273
function insert_marked_users(formId, users) {
'use strict';


function insert_marked_users(formId, users) {
'use strict';


	for (var i = 0; i < users.length; i++) {
if (users[i].checked) {
insertUser(formId, users[i].value);
}
}

	$(users).filter(':checked').each(function() {
insertUser(formId, this.value);
});




window.close();
}


window.close();
}

Line 643Line 610

// If there are any images in the links list, run the check again after they have loaded
$linksAll.find('img').each(function() {


// If there are any images in the links list, run the check again after they have loaded
$linksAll.find('img').each(function() {

			$(this).load(function() {

			$(this).on('load', function() {

				check();
});
});

				check();
});
});