diff --git a/resources/locales/messages.en.xlf b/resources/locales/messages.en.xlf index 6eef5adb2a..817e94079d 100644 --- a/resources/locales/messages.en.xlf +++ b/resources/locales/messages.en.xlf @@ -6149,7 +6149,7 @@ Subdef name - Subview mane + Subview name web/admin/subdefs.html.twig diff --git a/resources/www/common/js/jquery.tooltip.js b/resources/www/common/js/jquery.tooltip.js index beac0baccf..6822568f64 100644 --- a/resources/www/common/js/jquery.tooltip.js +++ b/resources/www/common/js/jquery.tooltip.js @@ -685,6 +685,8 @@ function unfix_tooltip() { $(document).bind('keydown', function (event) { + if( $.tooltip === undefined ) return; + if (event.keyCode == 27 && $.tooltip.blocked === true) { unfix_tooltip(); } diff --git a/resources/www/prod/skins/ui-components/_buttons.scss b/resources/www/prod/skins/ui-components/_buttons.scss index 494c5830d7..a2caad01cb 100644 --- a/resources/www/prod/skins/ui-components/_buttons.scss +++ b/resources/www/prod/skins/ui-components/_buttons.scss @@ -7,10 +7,6 @@ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); @include buttonBackground($btnBackground, $btnBackgroundHighlight, $btnColor, $btnTextShadow); } -.btn.btn-inverse { - @include buttonBackground($btnInverseBackground, $btnInverseBackgroundHighlight, $btnInverseColor, $btnInverseTextShadow); -} - // @TODO .btn-primary .ui-dialog .btn, .ui-widget-content .btn { @@ -20,55 +16,10 @@ color: $btnColor; } +.btn.btn-inverse { + @include buttonBackground($btnInverseBackground, $btnInverseBackgroundHighlight, $btnInverseColor, $btnInverseTextShadow); +} .input-append button.btn { border-left: 1px solid $btnGrpSeparatorColor; -} - - - -// not used: -/*.history-collection { - background-image: url('#{$iconsPath}chgcoll_history.png'); -} - -.history-status { - background-image: url('#{$iconsPath}chgstatus_history.png'); -} - -.history-print { - background-image: url('#{$iconsPath}print_history.png'); -} - -.history-substit, .history-publish { - background-image: url('#{$iconsPath}imgtools_history.png'); -} - -.history-download, .history-mail, .history-ftp { - background-image: url('#{$iconsPath}disktt_history.png'); -} -.history-edit { - background-image: url('#{$iconsPath}ppen_history.png'); -} - -.history-validate, .history-push { - background-image: url('#{$iconsPath}push16.png'); -} - -.history-collection, .history-status, .history-print, .history-substit, .history-publish, .history-download, .history-mail, .history-ftp, .history-edit, .history-validate, .history-push { - background-repeat: no-repeat; - background-position: center left; - background-size: 16px 16px; - padding-left: 24px; - min-height: 16px; -} - -@media only screen and (-webkit-min-device-pixel-ratio: 1.3), -only screen and (-o-min-device-pixel-ratio: 13/10), -only screen and (min-resolution: 120dpi) -{ - .history-collection, .history-status, .history-print, .history-substit, .history-publish, .history-download, .history-mail, .history-ftp, .history-edit, .history-validate, .history-push { - background-size: 16px 16px; - } -} -*/ \ No newline at end of file +} \ No newline at end of file diff --git a/resources/www/prod/skins/ui-components/_thumb-extractor.scss b/resources/www/prod/skins/ui-components/_thumb-extractor.scss index 0c2991dae3..e64f196425 100644 --- a/resources/www/prod/skins/ui-components/_thumb-extractor.scss +++ b/resources/www/prod/skins/ui-components/_thumb-extractor.scss @@ -109,7 +109,7 @@ img { display: inline-block; width: 80px; - height: 60px; + height: auto; margin-left: 5px; margin-right: 5px; &.selected { @@ -125,7 +125,7 @@ left: 10px; text-align: center; } - #thumb_validate_button { + .thumb_submit_action { cursor: pointer; height: 30px; width: 80px; @@ -146,6 +146,10 @@ padding: 5px; text-align: center; vertical-align: middle; + img.selected { + width: 160px; + height: auto; + } } } } diff --git a/resources/www/prod/skins/ui-components/_upload.scss b/resources/www/prod/skins/ui-components/_upload.scss index b3c3c6d74b..61389dd55d 100644 --- a/resources/www/prod/skins/ui-components/_upload.scss +++ b/resources/www/prod/skins/ui-components/_upload.scss @@ -114,7 +114,6 @@ height: 40px; } .error, .success{ - height: 55px; padding-top: 2px; padding-bottom: 3px; display: none; diff --git a/resources/www/vendors/jquery-test-paths/jquery.test-paths.js b/resources/www/vendors/jquery-test-paths/jquery.test-paths.js index aca7dc0bf1..f56299901c 100644 --- a/resources/www/vendors/jquery-test-paths/jquery.test-paths.js +++ b/resources/www/vendors/jquery-test-paths/jquery.test-paths.js @@ -17,7 +17,7 @@ $this.after(''); $this.after(''); - $this.after(''); + $this.after(''); $this.bind('keyup blur', function () { diff --git a/templates/web/admin/databox/databox.html.twig b/templates/web/admin/databox/databox.html.twig index 03e74eace8..9182ac6787 100644 --- a/templates/web/admin/databox/databox.html.twig +++ b/templates/web/admin/databox/databox.html.twig @@ -251,7 +251,7 @@ $("#viewname").html(data.viewname); } - $("#is_indexable").attr('checked', data.indexable); + $("#is_indexable").prop('checked', data.indexable); $("#records").text(data.counts.records); if (data.counts.records > 0) { diff --git a/templates/web/admin/publications/list.html.twig b/templates/web/admin/publications/list.html.twig index e03ba2d96f..514a7f180f 100644 --- a/templates/web/admin/publications/list.html.twig +++ b/templates/web/admin/publications/list.html.twig @@ -111,7 +111,7 @@ } }); $('#add_pub_public').bind('change', function(){ - if($(this).attr('checked')) + if($(this).prop('checked')) { $('#add_pub_base_id').val(''); } @@ -119,7 +119,7 @@ $('#add_pub_base_id').bind('change', function(){ if($(this).val() != '') { - $('#add_pub_public').attr('checked', false); + $('#add_pub_public').prop('checked', false); } }); }); diff --git a/templates/web/admin/subdefs.html.twig b/templates/web/admin/subdefs.html.twig index ece5bd59c8..9301592872 100644 --- a/templates/web/admin/subdefs.html.twig +++ b/templates/web/admin/subdefs.html.twig @@ -292,19 +292,27 @@ {% if option.getType() == constant('\\Alchemy\\Phrasea\\Media\\Subdef\\OptionType\\OptionType::TYPE_RANGE') %}
{% elseif option.getType() == constant('\\Alchemy\\Phrasea\\Media\\Subdef\\OptionType\\OptionType::TYPE_ENUM') %} + {% endif %} diff --git a/templates/web/admin/task-manager/task-editor/subdefs.html.twig b/templates/web/admin/task-manager/task-editor/subdefs.html.twig index e946e84657..b32fe6ba94 100644 --- a/templates/web/admin/task-manager/task-editor/subdefs.html.twig +++ b/templates/web/admin/task-manager/task-editor/subdefs.html.twig @@ -102,7 +102,7 @@ for(i=0; i < $databoxes.length; i++) { var sbid = $($databoxes[i]).attr('value'); - $($databoxes[i]).attr('checked', (xml.find("sbas").filter(function(){return $(this).text()==sbid}).length > 0)); + $($databoxes[i]).prop('checked', (xml.find("sbas").filter(function(){return $(this).text()==sbid}).length > 0)); } } } diff --git a/templates/web/common/dialog_export.html.twig b/templates/web/common/dialog_export.html.twig index a391a88730..e1aad473d1 100644 --- a/templates/web/common/dialog_export.html.twig +++ b/templates/web/common/dialog_export.html.twig @@ -643,7 +643,7 @@ $('input[name="obj[]"]', $('#download')).each(function(){ var total_el = $('#download input[name=download_'+$(this).val()+']'); var count_el = $('#download input[name=count_'+$(this).val()+']'); - if($(this).attr('checked')) + if($(this).prop('checked')) { total += parseInt($(total_el).val()); count += parseInt($(count_el).val()); @@ -664,7 +664,7 @@ if(count>1 && total/1024/1024 > {{max_download}}) { if(confirm("{{alert_too_big_one|e('js') ~ "\\n" ~ alert_too_big_two|e('js') ~ "\\n" ~ alert_too_big_three|e('js')}}")) { $('input[name="obj[]"]:checked', $('#download')).each(function(i,n){ - $('input[name="obj[]"][value="'+$(n).val()+'"]', $('#sendmail')).attr('checked', true); + $('input[name="obj[]"][value="'+$(n).val()+'"]', $('#sendmail')).prop('checked', true); }); $('input[name="destmail"]', $('#sendmail')).val("{{app.getAuthenticatedUser().getEmail()}}"); diff --git a/templates/web/prod/WorkZone/Browser/Browser.html.twig b/templates/web/prod/WorkZone/Browser/Browser.html.twig index db967d3103..85000f1444 100644 --- a/templates/web/prod/WorkZone/Browser/Browser.html.twig +++ b/templates/web/prod/WorkZone/Browser/Browser.html.twig @@ -299,9 +299,9 @@ name = input.attr('name'); var inputs = $('input[name="' + $(this).prev('input').attr('name') + '"]', $container); - inputs.removeAttr('checked').next('label').removeClass('selected'); + inputs.prop('checked', false).next('label').removeClass('selected'); - input.attr('checked', 'checked').next('label').addClass('selected'); + input.prop('checked', true).next('label').addClass('selected'); $('form[name="BasketBrowser"]', $container).trigger('submit') }); diff --git a/templates/web/prod/actions/Bridge/index.html.twig b/templates/web/prod/actions/Bridge/index.html.twig index 5abaf67728..df25fcface 100644 --- a/templates/web/prod/actions/Bridge/index.html.twig +++ b/templates/web/prod/actions/Bridge/index.html.twig @@ -234,7 +234,7 @@ $(function() { if(event.selector_all) { - $this.attr('checked', $(".bridge_all_selector", $panel).is(':checked')); + $this.prop('checked', $(".bridge_all_selector", $panel).is(':checked')); } $('form[name="bridge_selection"] input[name="elements_list"]', $panel).val( @@ -251,7 +251,7 @@ $(function() { if(!event.selector_all) { var bool = !($(".bridge_element_selector:checked", $panel).length !== $(".bridge_element_selector", $panel).length); - $(".bridge_all_selector", $panel).attr('checked', bool); + $(".bridge_all_selector", $panel).prop('checked', bool); } else { diff --git a/templates/web/prod/actions/Tools/confirm.html.twig b/templates/web/prod/actions/Tools/confirm.html.twig index 212d2224dd..6598366a09 100644 --- a/templates/web/prod/actions/Tools/confirm.html.twig +++ b/templates/web/prod/actions/Tools/confirm.html.twig @@ -3,7 +3,7 @@ - + diff --git a/templates/web/prod/actions/Tools/index.html.twig b/templates/web/prod/actions/Tools/index.html.twig index 9e5414c776..c3e4f2c722 100644 --- a/templates/web/prod/actions/Tools/index.html.twig +++ b/templates/web/prod/actions/Tools/index.html.twig @@ -121,7 +121,7 @@ {% set technical_info = record.get_technical_infos %} {% set width = technical_info[dataW].value %} - {% set height = technical_infos[dataH].value %} + {% set height = technical_info[dataH].value %} {% if width and height %} {% set ratio = (width / height)|number_format(2, '.') %} @@ -164,10 +164,11 @@
-
+
- {{ 'take a screenshot' | trans }} + +
{% endif %} @@ -349,11 +350,11 @@ {% endblock %}