Zeile 1 | Zeile 1 |
---|
var Thread = { init: function() {
|
var Thread = { init: function() {
|
$(document).ready(function(){
| $(function(){
|
Thread.quickEdit(); Thread.initQuickReply(); Thread.initMultiQuote();
| Thread.quickEdit(); Thread.initQuickReply(); Thread.initMultiQuote();
|
Zeile 120 | Zeile 120 |
---|
multiQuotedLoaded: function(request) {
|
multiQuotedLoaded: function(request) {
|
var json = $.parseJSON(request.responseText);
| var json = JSON.parse(request.responseText);
|
if(typeof json == 'object') { if(json.hasOwnProperty("errors"))
| if(typeof json == 'object') { if(json.hasOwnProperty("errors"))
|
Zeile 133 | Zeile 133 |
---|
} }
|
} }
|
if(typeof $('textarea').sceditor != 'undefined')
| if(typeof MyBBEditor !== 'undefined' && MyBBEditor !== null)
|
{
|
{
|
$('textarea').sceditor('instance').insert(json.message);
| MyBBEditor.insert(json.message);
|
} else {
| } else {
|
Zeile 151 | Zeile 151 |
---|
$('#quickreply_multiquote').hide(); $('#quoted_ids').val('all');
|
$('#quickreply_multiquote').hide(); $('#quoted_ids').val('all');
|
$('#message').focus();
| $('#message').trigger('focus');
|
},
clearMultiQuoted: function()
| },
clearMultiQuoted: function()
|
Zeile 208 | Zeile 208 |
---|
id = $(this).attr('id'); pid = id.replace( /[^\d.]/g, '');
|
id = $(this).attr('id'); pid = id.replace( /[^\d.]/g, '');
|
var json = $.parseJSON(values);
| var json = JSON.parse(values);
|
if(typeof json == 'object') { if(json.hasOwnProperty("errors"))
| if(typeof json == 'object') { if(json.hasOwnProperty("errors"))
|
Zeile 311 | Zeile 311 |
---|
if($('#quick_reply_form').length && use_xmlhttprequest == 1) { // Bind closing event to our popup menu
|
if($('#quick_reply_form').length && use_xmlhttprequest == 1) { // Bind closing event to our popup menu
|
$('#quick_reply_submit').bind('click', function(e) {
| $('#quick_reply_submit').on('click', function(e) {
|
return Thread.quickReply(e); }); }
| return Thread.quickReply(e); }); }
|
Zeile 355 | Zeile 355 |
---|
{ this.quick_replying = 0;
|
{ this.quick_replying = 0;
|
var json = $.parseJSON(request.responseText);
| var json = JSON.parse(request.responseText);
|
if(typeof json == 'object') { if(json.hasOwnProperty("errors"))
| if(typeof json == 'object') { if(json.hasOwnProperty("errors"))
|
Zeile 453 | Zeile 453 |
---|
deletePost: function(pid) {
|
deletePost: function(pid) {
|
$.prompt(quickdelete_confirm, {
| MyBB.prompt(quickdelete_confirm, {
|
buttons:[ {title: yes_confirm, value: true}, {title: no_confirm, value: false}
| buttons:[ {title: yes_confirm, value: true}, {title: no_confirm, value: false}
|
Zeile 467 | Zeile 467 |
---|
type: 'post', complete: function (request, status) {
|
type: 'post', complete: function (request, status) {
|
var json = $.parseJSON(request.responseText);
| var json = JSON.parse(request.responseText);
|
if(json.hasOwnProperty("errors")) { $.each(json.errors, function(i, message)
| if(json.hasOwnProperty("errors")) { $.each(json.errors, function(i, message)
|
Zeile 532 | Zeile 532 |
---|
restorePost: function(pid) {
|
restorePost: function(pid) {
|
$.prompt(quickrestore_confirm, {
| MyBB.prompt(quickrestore_confirm, {
|
buttons:[ {title: yes_confirm, value: true}, {title: no_confirm, value: false}
| buttons:[ {title: yes_confirm, value: true}, {title: no_confirm, value: false}
|
Zeile 546 | Zeile 546 |
---|
type: 'post', complete: function (request, status) {
|
type: 'post', complete: function (request, status) {
|
var json = $.parseJSON(request.responseText);
| var json = JSON.parse(request.responseText);
|
if(json.hasOwnProperty("errors")) { $.each(json.errors, function(i, message)
| if(json.hasOwnProperty("errors")) { $.each(json.errors, function(i, message)
|
Zeile 561 | Zeile 561 |
---|
if(json.first == 1) { $("#quick_reply_form, .thread_tools, .new_reply_button, .inline_rating").show();
|
if(json.first == 1) { $("#quick_reply_form, .thread_tools, .new_reply_button, .inline_rating").show();
|
$("#moderator_options_selector option.option_mirage").removeAttr("disabled");
| $("#moderator_options_selector option.option_mirage").prop("disabled", false);
|
$("#moderator_options_selector option[value='restorethread']").val("softdeletethread").text(lang.softdelete_thread); }
| $("#moderator_options_selector option[value='restorethread']").val("softdeletethread").text(lang.softdelete_thread); }
|