Skip to content
Snippets Groups Projects
Unverified Commit 4c6331c1 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

remove action-text-attachment

parent 8dbbcbde
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,19 @@
$(function () {
'use strict';
var cleanupTest = function ($field) {
$('action-text-attachment', $field).each(function (_, attachment) {
var hasImage = $('img', attachment).length > 0,
hasVideo = $('video', attachment).length > 0,
hasText = attachment.innerText.trim() !== '';
if (!hasImage && !hasVideo && !hasText) {
$(attachment).remove();
$field.trigger('input');
}
});
};
$.extend($.summernote.lang['en-US'].image, {
dragImageHere: 'Drag file here',
dropImage: 'Drop file'
......@@ -65,8 +78,3 @@ $(function () {
});
});
});
function cleanupTest($field) {
// $field.children
console.log($field.children());
}
......@@ -20,7 +20,7 @@
#
# Foreign Keys
#
# fk_rails_eed87f7acf (criterion_id => administration_qualiopi_criterions.id)
# fk_rails_31f1a0a2c9 (criterion_id => administration_qualiopi_criterions.id)
#
class Administration::Qualiopi::Indicator < ApplicationRecord
belongs_to :criterion
......
......@@ -29,7 +29,7 @@
#
# Foreign Keys
#
# fk_rails_bb6a496c08 (university_id => universities.id)
# fk_rails_94b0abd85b (university_id => universities.id)
#
class Communication::Website < ApplicationRecord
include WithAbouts
......
......@@ -39,7 +39,7 @@
#
# Foreign Keys
#
# fk_rails_08b351087c (university_id => universities.id)
# fk_rails_6e16107511 (university_id => universities.id)
# fk_rails_ec1f16f607 (parent_id => education_programs.id)
#
class Education::Program < ApplicationRecord
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment