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 191 | Zeile 191 |
---|
rows: 12, submit: lang.save_changes, cancel: lang.cancel_edit,
|
rows: 12, submit: lang.save_changes, cancel: lang.cancel_edit,
|
| placeholder: "",
|
event: "edit" + pid, // Triggered by the event "edit_[pid]", onblur: "ignore", dataType: "json",
| event: "edit" + pid, // Triggered by the event "edit_[pid]", onblur: "ignore", dataType: "json",
|
Zeile 208 | Zeile 209 |
---|
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 312 |
---|
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 356 |
---|
{ 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 454 |
---|
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 468 |
---|
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 533 |
---|
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 547 |
---|
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 562 |
---|
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); }
|