diff --git a/lib/Alchemy/Phrasea/Controller/Prod/QueryController.php b/lib/Alchemy/Phrasea/Controller/Prod/QueryController.php index 966e37f9bb..8c1a179de1 100644 --- a/lib/Alchemy/Phrasea/Controller/Prod/QueryController.php +++ b/lib/Alchemy/Phrasea/Controller/Prod/QueryController.php @@ -152,7 +152,7 @@ class QueryController extends Controller $infoResult = '
' . $this->app->trans('%number% documents
selectionnes', ['%number%' => '']) - . '
' + . '' . $this->app->trans('%total% reponses', ['%total%' => ''.$result->getTotal().'']) . ''; $json['infos'] = $infoResult; diff --git a/package.json b/package.json index 6a709ec272..f73203fc15 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,6 @@ "postinstall": "./node_modules/.bin/gulp install;" }, "dependencies": { - "phraseanet-production-client": "git+https://github.com/lostdalek/Phraseanet-production-client.git#notification" + "phraseanet-production-client": "~0.2.0" } } diff --git a/resources/gulp/components/prod.js b/resources/gulp/components/prod.js index 98034a0650..b53360f4da 100644 --- a/resources/gulp/components/prod.js +++ b/resources/gulp/components/prod.js @@ -63,62 +63,18 @@ gulp.task('build-prod-css', ['build-prod-skin-black', 'build-prod-skin-grey', 'b config.paths.src + 'prod/styles/main.scss' ], 'prod', 'prod/css/', debugMode); }); -gulp.task('build-prod-js', function(){ - var prodGroup = [ - // config.paths.vendors + 'underscore-amd/underscore.js', - //config.paths.src + 'vendors/colorpicker/js/colorpicker.js', - //config.paths.vendors + 'jquery.lazyload/jquery.lazyload.js', - // config.paths.vendors + 'humane-js/humane.js', // @TODO > extra files - //config.paths.vendors + 'blueimp-load-image/js/load-image.js', // @TODO > extra files - //config.paths.vendors + 'jquery-file-upload/js/jquery.iframe-transport.js', - //config.paths.vendors + 'jquery-file-upload/js/jquery.fileupload.js', - config.paths.vendors + 'geonames-server-jquery-plugin/jquery.geonames.js', - //config.paths.src + 'prod/js/core/lists.js', - //config.paths.src + 'prod/js/core/selectable.js', - //config.paths.src + 'prod/js/core/alert.js', - - //config.paths.src + 'prod/js/components/search/search.js', - //config.paths.src + 'prod/js/components/search/search-result.js', - // config.paths.src + 'prod/js/components/publication.js', - // config.paths.src + 'prod/js/components/workzone/workzone.js', - // config.paths.src + 'prod/js/components/workzone/workzone-basket.js', - // config.paths.src + 'prod/js/components/workzone/workzone-facets.js', - // config.paths.src + 'prod/js/components/workzone/workzone-thesaurus.js', - // config.paths.src + 'prod/js/components/cgu.js', - // config.paths.src + 'prod/js/components/preferences.js', - //config.paths.src + 'prod/js/components/record/editable-record.js', - //config.paths.src + 'prod/js/components/push/push.js', - // config.paths.src + 'prod/js/prod.js', - //config.paths.src + 'prod/js/components/upload/upload.js', - // config.paths.src + 'prod/js/components/video-editor.js', - //config.paths.src + 'vendors/jquery-sprintf/js/jquery.sprintf.1.0.3.js', - //config.paths.src + 'prod/js/components/preview/preview.js', - //config.paths.src + 'prod/js/components/editor/record-editor.js', - // config.paths.src + 'prod/js/jquery.color.animation.js', - //config.paths.src + 'vendors/jquery-image-enhancer/js/jquery.image_enhancer.js', - // config.paths.vendors + 'jquery-treeview/jquery.treeview.js', - // config.paths.vendors + 'jquery-treeview/jquery.treeview.async.js', - //config.paths.vendors + 'fancytree/dist/jquery.fancytree-all.min.js' - ]; - return utils.buildJsGroup(prodGroup, 'prod', 'prod/js', debugMode); -}); gulp.task('test-prod', function () { return gulp.src(config.paths.src + 'prod/js/tests/*.html') .pipe(qunit()); }); -gulp.task('watch-prod-js', function() { - debugMode = true; - return gulp.watch(config.paths.src + 'prod/**/*.js', ['build-prod-js']); -}); - gulp.task('watch-prod-css', function() { debugMode = true; return gulp.watch(config.paths.src + 'prod/**/*.scss', ['build-prod-css']); }); -gulp.task('build-prod', ['copy-prod-images', 'build-prod-css'], function(){ +gulp.task('build-prod', ['copy-prod-images'], function(){ debugMode = false; - return gulp.start('build-prod-js'); + return gulp.start('build-prod-css'); }); diff --git a/resources/gulp/watch.js b/resources/gulp/watch.js index 7f25545fa2..dc030b2456 100644 --- a/resources/gulp/watch.js +++ b/resources/gulp/watch.js @@ -23,7 +23,6 @@ gulp.task('watch-css', function(){ gulp.task('watch-js', function(){ gulp.start('watch-common-js'); // gulp.start('watch-oauth-js'); - gulp.start('watch-prod-js'); gulp.start('watch-thesaurus-js'); //gulp.start('watch-uploadFlash'); gulp.start('watch-lightbox-js'); diff --git a/resources/www/common/js/components/common.js b/resources/www/common/js/components/common.js index 5af0cfbf03..272011e0b5 100644 --- a/resources/www/common/js/components/common.js +++ b/resources/www/common/js/components/common.js @@ -22,10 +22,6 @@ var commonModule = (function ($, p4) { $.datepicker.setDefaults({showMonthAfterYear: false}); $.datepicker.setDefaults($.datepicker.regional[jq_date]); - $('body').on('click', '.infoDialog', function (event) { - _infoDialog($(this)); - }); - var cache = $('#mainMenu .helpcontextmenu'); $('.context-menu-item', cache).hover(function () { $(this).addClass('context-menu-item-hover'); @@ -33,35 +29,13 @@ var commonModule = (function ($, p4) { $(this).removeClass('context-menu-item-hover'); }); - /*$('#help-trigger').contextMenu('#mainMenu .helpcontextmenu', {openEvt: 'click', dropDown: true, theme: 'vista', dropDown: true, + $('#help-trigger').contextMenu('#mainMenu .helpcontextmenu', {openEvt: 'click', dropDown: true, theme: 'vista', dropDown: true, showTransition: 'slideDown', hideTransition: 'hide', shadow: false - });*/ + }); }); - - - - function _infoDialog(el) { - $("#DIALOG").attr('title', '') - .empty() - .append(el.attr('infos')) - .dialog({ - - autoOpen: false, - closeOnEscape: true, - resizable: false, - draggable: false, - width: 600, - height: 400, - modal: true, - overlay: { - backgroundColor: '#000', - opacity: 0.7 - } - }).dialog('open').css({'overflow-x': 'auto', 'overflow-y': 'auto'}); - } function showOverlay(n, appendto, callback, zIndex) { var div = "OVERLAY"; diff --git a/templates/web/common/dialog_export.html.twig b/templates/web/common/dialog_export.html.twig index f25f4b87b2..18bb198d21 100644 --- a/templates/web/common/dialog_export.html.twig +++ b/templates/web/common/dialog_export.html.twig @@ -80,15 +80,14 @@ {% if app['conf'].get(['registry', 'actions', 'auth-required-for-export']) and app.getAuthenticatedUser().isGuest() %} {% else %} {% if download.get_total_download() <= 0 and download.get_total_order() <= 0 and download.get_total_ftp() <= 0%} @@ -493,7 +492,7 @@ $('#ftp_form_selector').bind('change',function(){ $('#ftp .ftp_form').hide(); $('#ftp .ftp_form_'+$(this).val()).show(); - $('.ftp_folder_check', dialogModule.dialog.get(1).getDomElement()).unbind('change').bind('change', function(){ + $('.ftp_folder_check', dialog.get(1).getDomElement()).unbind('change').bind('change', function(){ if($(this).prop('checked')) $(this).next().prop('disabled',false); else @@ -507,332 +506,25 @@ {% endif %} diff --git a/templates/web/common/index_bootstrap.html.twig b/templates/web/common/index_bootstrap.html.twig index a24b8b8d22..06f2597ca9 100644 --- a/templates/web/common/index_bootstrap.html.twig +++ b/templates/web/common/index_bootstrap.html.twig @@ -18,17 +18,7 @@ - {% if app.debug %} - {# - #} - {% endif %} - {##} {% else %}
{{ 'No URL available' | trans }}
{% endif %} {% endif %} - diff --git a/templates/web/prod/User/Add.html.twig b/templates/web/prod/User/Add.html.twig index 23d6f34046..f2cfa27b18 100644 --- a/templates/web/prod/User/Add.html.twig +++ b/templates/web/prod/User/Add.html.twig @@ -47,7 +47,7 @@ - + @@ -66,67 +66,8 @@ + diff --git a/templates/web/prod/actions/Property/index.html.twig b/templates/web/prod/actions/Property/index.html.twig index c65ea701bb..f5779ffa1b 100644 --- a/templates/web/prod/actions/Property/index.html.twig +++ b/templates/web/prod/actions/Property/index.html.twig @@ -16,12 +16,12 @@ -
+

{% if nbReceivedDocuments == 1 %} @@ -119,64 +119,6 @@

- - - +
+ {% endif %} diff --git a/templates/web/prod/actions/Property/type.html.twig b/templates/web/prod/actions/Property/type.html.twig index 2d5fb35acb..4ce19322a0 100644 --- a/templates/web/prod/actions/Property/type.html.twig +++ b/templates/web/prod/actions/Property/type.html.twig @@ -53,36 +53,3 @@ - - diff --git a/templates/web/prod/actions/Push.html.twig b/templates/web/prod/actions/Push.html.twig index dd63a30a77..c6f5099652 100644 --- a/templates/web/prod/actions/Push.html.twig +++ b/templates/web/prod/actions/Push.html.twig @@ -89,7 +89,7 @@ {{ 'Select a user in the list' | trans }}
{% if app.getAclForUser(app.getAuthenticatedUser()).has_right('manageusers') %} {{ 'or' | trans }} - {{ 'Add user' | trans }} + {{ 'Add user' | trans }} {% endif %}

diff --git a/templates/web/prod/index.html.twig b/templates/web/prod/index.html.twig index bf1f0c405e..31e8c51d0b 100644 --- a/templates/web/prod/index.html.twig +++ b/templates/web/prod/index.html.twig @@ -486,7 +486,7 @@

{% set mod = app['settings'].getUserSetting(app.getAuthenticatedUser(), 'advanced_search_reload') %}
@@ -496,11 +496,11 @@

{{ 'Mode de presentation' | trans }}

{% set mod = app['settings'].getUserSetting(app.getAuthenticatedUser(), 'view') %} @@ -516,11 +516,11 @@ {% set rollover_thumbnail = app['settings'].getUserSetting(app.getAuthenticatedUser(), 'rollover_thumbnail') %}

{{ 'Presentation de vignettes' | trans }}

@@ -528,15 +528,15 @@ {% set technical_display = app['settings'].getUserSetting(app.getAuthenticatedUser(), 'technical_display') %}

{{'Display technical data' | trans }}

@@ -544,7 +544,7 @@ {% set doctype_display = app['settings'].getUserSetting(app.getAuthenticatedUser(), 'doctype_display') %}

{{'Type de documents' | trans }}

@@ -671,8 +671,8 @@
{% set basket_status_display = app['settings'].getUserSetting(app.getAuthenticatedUser(), 'basket_status_display') %} @@ -680,8 +680,8 @@
{% set basket_caption_display = app['settings'].getUserSetting(app.getAuthenticatedUser(), 'basket_caption_display') %} @@ -689,8 +689,8 @@
{% set basket_title_display = app['settings'].getUserSetting(app.getAuthenticatedUser(), 'basket_title_display') %} @@ -703,8 +703,8 @@ - - + {##} + {##} + {% endblock %}