Loading css/style.css +22 −13 Original line number Diff line number Diff line Loading @@ -342,18 +342,18 @@ ul.fiu-sortable-list li > .form-type-select { } /* Add integration with IMCE. */ .imce-filefield-widget { .fiu-wrapper .imce-filefield-widget { position: absolute; top: 5px; text-align: center; width: 100%; } .fiu-load-image. .imce-filefield-widget { .fiu-wrapper .fiu-load-image. .imce-filefield-widget { display: none; } /* Add integration with filefield_sources module. */ .filefield-sources-list { .fiu-wrapper .filefield-sources-list { position: absolute; top: 70px; text-align: center; Loading @@ -362,19 +362,19 @@ ul.fiu-sortable-list li > .form-type-select { } /* Hide some sources. */ .filefield-sources-list .filefield-source-imce, .filefield-sources-list .filefield-source-attach, .filefield-sources-list .filefield-source-clipboard { .fiu-wrapper .filefield-sources-list .filefield-source-imce, .fiu-wrapper .filefield-sources-list .filefield-source-attach, .fiu-wrapper .filefield-sources-list .filefield-source-clipboard { display: none; } .filefield-sources-list a { .fiu-wrapper .filefield-sources-list a { display: inline-block; margin: 0 2px; } .filefield-source.filefield-source-remote.clear-block, .filefield-source.filefield-source-reference.clear-block { .fiu-wrapper .filefield-source.filefield-source-remote.clear-block, .fiu-wrapper .filefield-source.filefield-source-reference.clear-block { position: absolute; left: 0; width: 170px; Loading @@ -383,15 +383,24 @@ ul.fiu-sortable-list li > .form-type-select { padding: 10px 5px; } .filefield-source.filefield-source-remote.clear-block .field-suffix, .filefield-source.filefield-source-reference.clear-block .field-suffix { .fiu-wrapper .filefield-source.filefield-source-remote.clear-block .field-suffix, .fiu-wrapper .filefield-source.filefield-source-reference.clear-block .field-suffix { text-align: center; width: 170px; display: inline-block; margin: 5px 0px; } .unitary-element .filefield-source.clear-block > .form-item { .fiu-wrapper .unitary-element .filefield-source.clear-block > .form-item { width: 100% !important; margin: 0; } .fiu-wrapper .filefield-source-remote .ajax-progress-bar { margin: 0; padding: 0; width: 100%; position: relative; z-index: 999; background: #eee; } js/script.js +12 −0 Original line number Diff line number Diff line Loading @@ -39,4 +39,16 @@ } }; /** * Attach behaviors to file element auto upload. */ Drupal.behaviors.fiuFileAutoUpload = { attach: function (context) { var image = $(context).find('.fiu-wrapper .fine-image-data .file--image a'); if (image.length === 1) { $(image).closest('.form-managed-file').find('.form-submit.upload-button').trigger('mousedown'); } } }; })(jQuery, Drupal); Loading
css/style.css +22 −13 Original line number Diff line number Diff line Loading @@ -342,18 +342,18 @@ ul.fiu-sortable-list li > .form-type-select { } /* Add integration with IMCE. */ .imce-filefield-widget { .fiu-wrapper .imce-filefield-widget { position: absolute; top: 5px; text-align: center; width: 100%; } .fiu-load-image. .imce-filefield-widget { .fiu-wrapper .fiu-load-image. .imce-filefield-widget { display: none; } /* Add integration with filefield_sources module. */ .filefield-sources-list { .fiu-wrapper .filefield-sources-list { position: absolute; top: 70px; text-align: center; Loading @@ -362,19 +362,19 @@ ul.fiu-sortable-list li > .form-type-select { } /* Hide some sources. */ .filefield-sources-list .filefield-source-imce, .filefield-sources-list .filefield-source-attach, .filefield-sources-list .filefield-source-clipboard { .fiu-wrapper .filefield-sources-list .filefield-source-imce, .fiu-wrapper .filefield-sources-list .filefield-source-attach, .fiu-wrapper .filefield-sources-list .filefield-source-clipboard { display: none; } .filefield-sources-list a { .fiu-wrapper .filefield-sources-list a { display: inline-block; margin: 0 2px; } .filefield-source.filefield-source-remote.clear-block, .filefield-source.filefield-source-reference.clear-block { .fiu-wrapper .filefield-source.filefield-source-remote.clear-block, .fiu-wrapper .filefield-source.filefield-source-reference.clear-block { position: absolute; left: 0; width: 170px; Loading @@ -383,15 +383,24 @@ ul.fiu-sortable-list li > .form-type-select { padding: 10px 5px; } .filefield-source.filefield-source-remote.clear-block .field-suffix, .filefield-source.filefield-source-reference.clear-block .field-suffix { .fiu-wrapper .filefield-source.filefield-source-remote.clear-block .field-suffix, .fiu-wrapper .filefield-source.filefield-source-reference.clear-block .field-suffix { text-align: center; width: 170px; display: inline-block; margin: 5px 0px; } .unitary-element .filefield-source.clear-block > .form-item { .fiu-wrapper .unitary-element .filefield-source.clear-block > .form-item { width: 100% !important; margin: 0; } .fiu-wrapper .filefield-source-remote .ajax-progress-bar { margin: 0; padding: 0; width: 100%; position: relative; z-index: 999; background: #eee; }
js/script.js +12 −0 Original line number Diff line number Diff line Loading @@ -39,4 +39,16 @@ } }; /** * Attach behaviors to file element auto upload. */ Drupal.behaviors.fiuFileAutoUpload = { attach: function (context) { var image = $(context).find('.fiu-wrapper .fine-image-data .file--image a'); if (image.length === 1) { $(image).closest('.form-managed-file').find('.form-submit.upload-button').trigger('mousedown'); } } }; })(jQuery, Drupal);