|
|
|
|
153
|
ajax.post("ajax.php?action=preview","form" + postid, function(response) {
|
153
|
ajax.post("ajax.php?action=preview","form" + postid, function(response) {
|
154
|
$('#preview' + postid).raw().innerHTML = response;
|
154
|
$('#preview' + postid).raw().innerHTML = response;
|
155
|
$('#editbox' + postid).ghide();
|
155
|
$('#editbox' + postid).ghide();
|
156
|
- if ($('#editbox' + postid).raw().previousSibling.className == 'bbcode_bar') $($('#editbox' + postid).raw().previousSibling).ghide();
|
|
|
|
|
156
|
+ if ($('#editbox' + postid).raw().previousSibling.classList.contains('bbcode_bar')) $($('#editbox' + postid).raw().previousSibling).ghide();
|
157
|
});
|
157
|
});
|
158
|
}
|
158
|
}
|
159
|
|
159
|
|
|
|
|
|
161
|
$('#bar' + postid).raw().innerHTML = "<input type=\"button\" value=\"Preview\" onclick=\"Preview_Edit(" + postid + ");\" /><input type=\"button\" value=\"Post\" onclick=\"Save_Edit(" + postid + ")\" /><input type=\"button\" value=\"Cancel\" onclick=\"Cancel_Edit(" + postid + ");\" />";
|
161
|
$('#bar' + postid).raw().innerHTML = "<input type=\"button\" value=\"Preview\" onclick=\"Preview_Edit(" + postid + ");\" /><input type=\"button\" value=\"Post\" onclick=\"Save_Edit(" + postid + ")\" /><input type=\"button\" value=\"Cancel\" onclick=\"Cancel_Edit(" + postid + ");\" />";
|
162
|
$('#preview' + postid).raw().innerHTML = "";
|
162
|
$('#preview' + postid).raw().innerHTML = "";
|
163
|
$('#editbox' + postid).gshow();
|
163
|
$('#editbox' + postid).gshow();
|
|
|
164
|
+ if ($('#editbox' + postid).raw().previousSibling.classList.contains('bbcode_bar')) $($('#editbox' + postid).raw().previousSibling).gshow();
|
164
|
}
|
165
|
}
|
165
|
|
166
|
|
166
|
function Save_Edit(postid) {
|
167
|
function Save_Edit(postid) {
|