Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel authored and daniel committed Aug 13, 2019
1 parent 30f97da commit 2902894
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions view/managerVideos_body.php
Original file line number Diff line number Diff line change
Expand Up @@ -589,16 +589,6 @@
<?php
echo YouPHPTubePlugin::getManagerVideosJavaScripts();
?>
<script type="text/javascript" src="<?php echo $global['webSiteRootURL']; ?>view/js/tinymce/tinymce.min.js"></script>
<script>
tinymce.init({
selector: '#inputDescription',
plugins: "paste",
menubar: "edit",
paste_data_images: true,
paste_word_valid_elements: "b,strong,i,em,h1,h2"
});
</script>
<script>
var timeOut;
var encodingNowId = "";
Expand Down Expand Up @@ -829,7 +819,6 @@ function editVideo(row) {
$('#inputTrailer').val(row.trailer1);
$('#inputCleanTitle').val(row.clean_title);
$('#inputDescription').val(row.description);
tinymce.get('inputDescription').setContent(row.description);
$('#inputCategory').val(row.categories_id);
$('#inputRrating').val(row.rrating);
<?php
Expand Down Expand Up @@ -1011,8 +1000,7 @@ function saveVideo(closeModal) {
"videoLink": $('#videoLink').val(),
"videoLinkType": $('#videoLinkType').val(),
"clean_title": $('#inputCleanTitle').val(),
"description": tinymce.get('inputDescription').getContent(),
//"description": $('#inputDescription').val(),
"description": $('#inputDescription').val(),
"categories_id": $('#inputCategory').val(),
"rrating": $('#inputRrating').val(),
"public": isPublic,
Expand Down Expand Up @@ -1061,7 +1049,6 @@ function resetVideoForm() {
$('#inputTrailer').val("");
$('#inputCleanTitle').val("");
$('#inputDescription').val("");
tinymce.get('inputDescription').setContent("");
$('#inputCategory').val("");
$('#inputRrating').val("");
$('#removeAutoplay').trigger('click');
Expand Down Expand Up @@ -1411,7 +1398,6 @@ function formatFileSize(bytes) {
$('#inputTrailer').val("");
$('#inputCleanTitle').val("");
$('#inputDescription').val("");
tinymce.get('inputDescription').setContent("");
$('#inputCategory').val($('#inputCategory option:first').val());
$('#inputRrating').val("");
$('.videoGroups').prop('checked', false);
Expand Down Expand Up @@ -1443,7 +1429,6 @@ function formatFileSize(bytes) {
$('#inputTrailer').val("");
$('#inputCleanTitle').val("");
$('#inputDescription').val("");
tinymce.get('inputDescription').setContent("");
$('#inputCategory').val($('#inputCategory option:first').val());
$('#inputRrating').val("");
$('.videoGroups').prop('checked', false);
Expand Down

0 comments on commit 2902894

Please sign in to comment.