Zeile 9 | Zeile 9 |
---|
inlineModeration.cookieName = 'inlinemod_'+inlineType+inlineId; var inputs = $('input');
|
inlineModeration.cookieName = 'inlinemod_'+inlineType+inlineId; var inputs = $('input');
|
if(!inputs)
| if(!inputs.length)
|
{ return false; }
| { return false; }
|
Zeile 38 | Zeile 38 |
---|
var post = element.parents('.post_content'); var thread = element.parents('.inline_row'); var fieldset = element.parents('fieldset');
|
var post = element.parents('.post_content'); var thread = element.parents('.inline_row'); var fieldset = element.parents('fieldset');
|
if(post.length > 0)
| if(post.length)
|
{ post.addClass('trow_selected'); }
|
{ post.addClass('trow_selected'); }
|
else if(thread.length > 0)
| else if(thread.length)
|
{ thread.addClass('trow_selected'); }
|
{ thread.addClass('trow_selected'); }
|
if(fieldset.length > 0)
| if(fieldset.length)
|
{ fieldset.addClass('inline_selected'); }
| { fieldset.addClass('inline_selected'); }
|
Zeile 58 | Zeile 58 |
---|
element.prop('checked', false); var post = element.parents('.post_content'); var thread = element.parents('.inline_row');
|
element.prop('checked', false); var post = element.parents('.post_content'); var thread = element.parents('.inline_row');
|
if(post.length > 0)
| if(post.length)
|
{ post.removeClass('trow_selected'); }
|
{ post.removeClass('trow_selected'); }
|
else if(thread.length > 0)
| else if(thread.length)
|
{ thread.removeClass('trow_selected'); }
| { thread.removeClass('trow_selected'); }
|
Zeile 133 | Zeile 133 |
---|
} var post = element.parents('.post_content'); var thread = element.parents('.inline_row');
|
} var post = element.parents('.post_content'); var thread = element.parents('.inline_row');
|
if(post.length > 0)
| if(post.length)
|
{ post.addClass('trow_selected'); }
|
{ post.addClass('trow_selected'); }
|
else if(thread.length > 0)
| else if(thread.length)
|
{ thread.addClass('trow_selected'); }
| { thread.addClass('trow_selected'); }
|
Zeile 164 | Zeile 164 |
---|
} var post = element.parents('.post_content'); var thread = element.parents('.inline_row');
|
} var post = element.parents('.post_content'); var thread = element.parents('.inline_row');
|
if(post.length > 0)
| if(post.length)
|
{ post.removeClass('trow_selected'); }
|
{ post.removeClass('trow_selected'); }
|
else if(thread.length > 0)
| else if(thread.length)
|
{ thread.removeClass('trow_selected'); }
| { thread.removeClass('trow_selected'); }
|
Zeile 181 | Zeile 181 |
---|
clearChecked: function() {
|
clearChecked: function() {
|
var selectRow = $('#selectAllrow'); if(selectRow) { selectRow.hide(); }
var allSelectedRow = $('#allSelectedrow'); if(allSelectedRow) { allSelectedRow.hide(); }
| $('#selectAllrow').hide(); $('#allSelectedrow').hide();
|
var inputs = $('input');
|
var inputs = $('input');
|
if(!inputs)
| if(!inputs.length)
|
{ return false; }
| { return false; }
|
Zeile 211 | Zeile 202 |
---|
$('.trow_selected').each(function() { $(this).removeClass('trow_selected');
|
$('.trow_selected').each(function() { $(this).removeClass('trow_selected');
|
});
| });
|
$('fieldset.inline_selected').each(function() { $(this).removeClass('inline_selected');
| $('fieldset.inline_selected').each(function() { $(this).removeClass('inline_selected');
|
Zeile 223 | Zeile 214 |
---|
return true; },
|
return true; },
|
|
|
checkAll: function(master) { inputs = $('input'); master = $(master);
|
checkAll: function(master) { inputs = $('input'); master = $(master);
|
if(!inputs) {
| if(!inputs.length) {
|
return false; }
| return false; }
|
Zeile 251 | Zeile 242 |
---|
var post = element.parents('.post_content'); var fieldset = element.parents('fieldset'); var thread = element.parents('.inline_row');
|
var post = element.parents('.post_content'); var fieldset = element.parents('fieldset'); var thread = element.parents('.inline_row');
|
if(post.length > 0)
| if(post.length)
|
{ if(master.prop('checked') == true) {
| { if(master.prop('checked') == true) {
|
Zeile 262 | Zeile 253 |
---|
post.removeClass('trow_selected'); } }
|
post.removeClass('trow_selected'); } }
|
else if(thread.length > 0)
| else if(thread.length)
|
{ if(master.prop('checked') == true) { thread.addClass('trow_selected');
|
{ if(master.prop('checked') == true) { thread.addClass('trow_selected');
|
} else
| } else
|
{ thread.removeClass('trow_selected'); } }
|
{ thread.removeClass('trow_selected'); } }
|
if(fieldset.length > 0)
| if(fieldset.length)
|
{ if(master.prop('checked') == true) {
| { if(master.prop('checked') == true) {
|
Zeile 319 | Zeile 310 |
---|
if(count < all_text) { var selectRow = $('#selectAllrow');
|
if(count < all_text) { var selectRow = $('#selectAllrow');
|
if(selectRow)
| if(selectRow.length)
|
{ if(master.prop('checked') == true) {
| { if(master.prop('checked') == true) {
|
Zeile 334 | Zeile 325 |
---|
if(inlineIds.indexOf('ALL') == -1 || removedIds.length != 0) {
|
if(inlineIds.indexOf('ALL') == -1 || removedIds.length != 0) {
|
var allSelectedRow = $('#allSelectedrow'); if(allSelectedRow) { allSelectedRow.hide(); }
| $('#allSelectedrow').hide();
|
} else if(inlineIds.indexOf('ALL') != -1 && removedIds.length == 0)
|
} else if(inlineIds.indexOf('ALL') != -1 && removedIds.length == 0)
|
{ var allSelectedRow = $('#allSelectedrow'); if(allSelectedRow) { allSelectedRow.show(); } }
| { $('#allSelectedrow').show(); }
|
},
selectAll: function() { inlineModeration.updateCookies(new Array('ALL'), new Array());
|
},
selectAll: function() { inlineModeration.updateCookies(new Array('ALL'), new Array());
|
var selectRow = $('#selectAllrow'); if(selectRow) { selectRow.hide(); }
var allSelectedRow = $('#allSelectedrow'); if(allSelectedRow) { allSelectedRow.show(); }
| $('#selectAllrow').hide(); $('#allSelectedrow').show();
|
},
getCookie: function(name)
| },
getCookie: function(name)
|