mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-11 20:13:28 +00:00
Fix tooltip + enhancement
Adressed PR's comment Fix CSS issue
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
"name": "Phraseanet",
|
"name": "Phraseanet",
|
||||||
"version": "3.8.0",
|
"version": "3.8.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bootstrap": "~2.3.0",
|
"bootstrap": "~2.2.2",
|
||||||
"jquery": "~1.8.3",
|
"jquery": "~1.8.3",
|
||||||
"font-awesome": "~3.0.2",
|
"font-awesome": "~3.0.2",
|
||||||
"underscore": "~1.4.4",
|
"underscore": "~1.4.4",
|
||||||
|
@@ -150,6 +150,7 @@ class BinariesRequirements extends RequirementCollection implements RequirementI
|
|||||||
|
|
||||||
if (null !== $unoconv) {
|
if (null !== $unoconv) {
|
||||||
$output = null;
|
$output = null;
|
||||||
|
exec($unoconv . ' --version', $output);
|
||||||
$data = sscanf($output[0], 'unoconv %d.%d');
|
$data = sscanf($output[0], 'unoconv %d.%d');
|
||||||
$version = sprintf('%d.%d', $data[0], $data[1]);
|
$version = sprintf('%d.%d', $data[0], $data[1]);
|
||||||
|
|
||||||
|
@@ -1,10 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// This file is automatically generated, please do not edit it.
|
|
||||||
// To update configuration, use bin/console plugins:* commands.
|
|
||||||
|
|
||||||
return call_user_func(function () {
|
return call_user_func(function () {
|
||||||
$loader = require __DIR__ . '/../vendor/autoload.php';
|
return require __DIR__ . '/../vendor/autoload.php';
|
||||||
|
|
||||||
return $loader;
|
|
||||||
});
|
});
|
||||||
|
@@ -1,11 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// This file is automatically generated, please do not edit it.
|
|
||||||
// To update configuration, use bin/console plugins:* commands.
|
|
||||||
|
|
||||||
use Alchemy\Phrasea\Application;
|
use Alchemy\Phrasea\Application;
|
||||||
|
|
||||||
return call_user_func(function (Application $app) {
|
return call_user_func(function (Application $app) {
|
||||||
|
|
||||||
return $app;
|
return $app;
|
||||||
}, $app);
|
}, $app);
|
||||||
|
@@ -62,12 +62,16 @@ function datePicker()
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
{% if datas.limited_to %}
|
{% if datas.limited_to %}
|
||||||
var instance = $('.dmin').data("datepicker");
|
var instance = $('.dmin').data("ui-datepicker");
|
||||||
$('.dmin').datepicker("option", 'maxDate', $.datepicker.parseDate(instance.settings.dateFormat || $.datepicker._defaults.dateFormat, "{{datas.limited_to}}", instance.settings));
|
if (instance) {
|
||||||
|
$('.dmin').datepicker("option", 'maxDate', $.datepicker.parseDate(instance.settings.dateFormat || $.datepicker._defaults.dateFormat, "{{datas.limited_to}}", instance.settings));
|
||||||
|
}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if datas.limited_from %}
|
{% if datas.limited_from %}
|
||||||
var instance = $('.dmax').data("datepicker");
|
var instance = $('.dmax').data("ui-datepicker");
|
||||||
$('.dmax').datepicker("option", 'minDate', $.datepicker.parseDate(instance.settings.dateFormat || $.datepicker._defaults.dateFormat, "{{datas.limited_from}}", instance.settings));
|
if (instance) {
|
||||||
|
$('.dmax').datepicker("option", 'minDate', $.datepicker.parseDate(instance.settings.dateFormat || $.datepicker._defaults.dateFormat, "{{datas.limited_from}}", instance.settings));
|
||||||
|
}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@@ -157,9 +157,13 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
{% if task.getInterfaceHTML() is empty %}
|
{% if task.getInterfaceHTML() is empty %}
|
||||||
$("#taskTabs").tabs("disable", 0);
|
if ($("#taskTabs").tabs.data("ui-tabs")) {
|
||||||
|
$("#taskTabs").tabs("disable", 0);
|
||||||
|
}
|
||||||
{% else %}
|
{% else %}
|
||||||
$("#taskTabs").tabs("active", 0);
|
if ($("#taskTabs").tabs.data("ui-tabs")) {
|
||||||
|
$("#taskTabs").tabs("active", 0);
|
||||||
|
}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
$("#taskResetCrashCounterButton").click(function()
|
$("#taskResetCrashCounterButton").click(function()
|
||||||
|
@@ -11,6 +11,9 @@
|
|||||||
|
|
||||||
<script type="text/javascript" src="{{ path('minifier', { 'f' : 'assets/jquery/jquery.js' }) }}"></script>
|
<script type="text/javascript" src="{{ path('minifier', { 'f' : 'assets/jquery/jquery.js' }) }}"></script>
|
||||||
<script type="text/javascript" src="{{ path('minifier', { 'f' : 'include/jslibs/jquery-ui-1.10.3.js' }) }}"></script>
|
<script type="text/javascript" src="{{ path('minifier', { 'f' : 'include/jslibs/jquery-ui-1.10.3.js' }) }}"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
$.widget.bridge('uitooltip', $.ui.tooltip);
|
||||||
|
</script>
|
||||||
<script type="text/javascript" src="{{ path('minifier', { 'f' : 'skins/build/bootstrap/js/bootstrap.js' }) }}"></script>
|
<script type="text/javascript" src="{{ path('minifier', { 'f' : 'skins/build/bootstrap/js/bootstrap.js' }) }}"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var btn = $.fn.button.noConflict(); // reverts $.fn.button to jqueryui btn
|
var btn = $.fn.button.noConflict(); // reverts $.fn.button to jqueryui btn
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
||||||
<title>{% if local_title is defined%}{{local_title}} | {% endif %}{{ app['phraseanet.registry'].get('GV_homeTitle') }} - {{ module_name }} </title>
|
<title>{% if local_title is defined%}{{local_title}} | {% endif %}{{ app['phraseanet.registry'].get('GV_homeTitle') }} - {{ module_name }} </title>
|
||||||
<link type="text/css" rel="stylesheet" href="{{app['phraseanet.registry'].get('GV_STATIC_URL')}}/skins/common/main.css">
|
<link type="text/css" rel="stylesheet" href="{{ path('minifier', { 'f' : 'skins/common/main.css' }) }}">
|
||||||
{% block stylesheet %}{% endblock %}
|
{% block stylesheet %}{% endblock %}
|
||||||
{% block icon %}{% endblock %}
|
{% block icon %}{% endblock %}
|
||||||
{% block rss %}{% endblock %}
|
{% block rss %}{% endblock %}
|
||||||
|
@@ -7,11 +7,6 @@
|
|||||||
<script type="text/javascript" src="{{ path('minifier', { 'g' : 'lightboxie6' }) }}"></script>
|
<script type="text/javascript" src="{{ path('minifier', { 'g' : 'lightboxie6' }) }}"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block stylesheet %}
|
|
||||||
<link type="text/css" rel="stylesheet"
|
|
||||||
href="{{ path('minifier', { 'f' : 'include/jslibs/jquery-ui-1.10.3/css/ui-lightness/jquery-ui-1.10.3.custom.css,skins/lightbox/lightboxie6.css' }) }}" media="screen"/>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% set basket_element = basket.getElements().first() %}
|
{% set basket_element = basket.getElements().first() %}
|
||||||
<div id="innerWrapper" style="top:10px;left:10px;position:relative;width:100%;height:100%;">
|
<div id="innerWrapper" style="top:10px;left:10px;position:relative;width:100%;height:100%;">
|
||||||
|
@@ -66,16 +66,17 @@
|
|||||||
$("#QuickAddUser button").button();
|
$("#QuickAddUser button").button();
|
||||||
|
|
||||||
$("#QuickAddUser form").bind('submit', function(){
|
$("#QuickAddUser form").bind('submit', function(){
|
||||||
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
$("#QuickAddUser form button.cancel").bind('click', function(){
|
$("#QuickAddUser form button.cancel").bind('click', function(){
|
||||||
|
var dialog = $(this).closest('.ui-dialog-content');
|
||||||
|
if (dialog.data("ui-dialog")) {
|
||||||
|
dialog.dialog('destroy');
|
||||||
|
}
|
||||||
|
|
||||||
$(this).closest('.ui-dialog-content').dialog('destroy');
|
dialog.remove();
|
||||||
$(this).closest('.ui-dialog-content').remove();
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
$("#QuickAddUser form button.valid").bind('click', function(){
|
$("#QuickAddUser form button.valid").bind('click', function(){
|
||||||
|
|
||||||
@@ -83,7 +84,10 @@
|
|||||||
var $this = $(this);
|
var $this = $(this);
|
||||||
|
|
||||||
var callback = function(){
|
var callback = function(){
|
||||||
$this.closest('.ui-dialog-content').dialog('destroy').remove()
|
var dialog = $this.closest('.ui-dialog-content');
|
||||||
|
if (dialog.data("ui-dialog")) {
|
||||||
|
dialog.dialog('destroy').remove();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
p4.Feedback.addUser($form, callback);
|
p4.Feedback.addUser($form, callback);
|
||||||
|
@@ -109,7 +109,9 @@ $(function() {
|
|||||||
$('.error_box, .notice_box', $panel).delay(10000).fadeOut();
|
$('.error_box, .notice_box', $panel).delay(10000).fadeOut();
|
||||||
|
|
||||||
$('.back_link', $panel).bind('click', function(){
|
$('.back_link', $panel).bind('click', function(){
|
||||||
$('#pub_tabs').tabs('load',$('#pub_tabs').tabs('option', 'active'));
|
if ($('#pub_tabs').data("ui-tabs")) {
|
||||||
|
$('#pub_tabs').tabs('load',$('#pub_tabs').tabs('option', 'active'));
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
@@ -317,25 +319,26 @@ $(function() {
|
|||||||
|
|
||||||
pub_tabs.tabs({
|
pub_tabs.tabs({
|
||||||
beforeLoad: function( event, ui ) {
|
beforeLoad: function( event, ui ) {
|
||||||
ui.tab.find('span').html("<i>loading...</i>");
|
ui.tab.html_tab = ui.tab.find('span').html();
|
||||||
|
ui.tab.find('span').html("<i>{{ 'Loading'|trans }}...</i>");
|
||||||
},
|
},
|
||||||
load: function(event, ui)
|
load: function(event, ui)
|
||||||
{
|
{
|
||||||
ui.tab.find('span').empty();
|
ui.tab.find('span').empty().append(ui.tab.html_tab);
|
||||||
$panel = $(ui.panel);
|
$panel = $(ui.panel);
|
||||||
$('.container-bridge', $panel).removeClass('loading');
|
$('.container-bridge', $panel).removeClass('loading');
|
||||||
panel_load($panel);
|
$panel.addClass("PNB");
|
||||||
|
$panel.wrapInner("<div class='PNB10 container-bridge' />");
|
||||||
|
panel_load($panel);
|
||||||
}
|
}
|
||||||
//@todo remove this as it is deprected, check where new tabs is added
|
|
||||||
, panelTemplate : '<div class="PNB"><div class="PNB10 container-bridge"></div></div>'
|
|
||||||
,beforeActivate: function(event, ui)
|
,beforeActivate: function(event, ui)
|
||||||
{
|
{
|
||||||
if($(ui.tab).hasClass('account'))
|
if($(ui.tab).hasClass('account'))
|
||||||
{
|
{
|
||||||
var container = $('.container-bridge', ui.panel);
|
var container = $('.container-bridge', ui.panel);
|
||||||
container.empty();
|
container.empty();
|
||||||
$('.container', ui.panel).addClass('loading');
|
$('.container', ui.panel).addClass('loading');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}).addClass('ui-tabs-vertical ui-helper-clearfix');
|
}).addClass('ui-tabs-vertical ui-helper-clearfix');
|
||||||
$('.ui-tabs-nav', pub_tabs).removeClass('ui-corner-all');
|
$('.ui-tabs-nav', pub_tabs).removeClass('ui-corner-all');
|
||||||
@@ -399,16 +402,23 @@ $(function() {
|
|||||||
|
|
||||||
|
|
||||||
$("li", pub_tabs).removeClass('ui-corner-top').addClass('ui-corner-left');
|
$("li", pub_tabs).removeClass('ui-corner-top').addClass('ui-corner-left');
|
||||||
|
|
||||||
$("#api_connexion").click(function(){
|
$("#api_connexion").click(function(){
|
||||||
container.dialog("close")
|
if (container.data("ui-dialog")) {
|
||||||
|
container.dialog("close");
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
{% if route.get_count_element_received() == 0 %}
|
{% if route.get_count_element_received() == 0 %}
|
||||||
alert('{{ "Vous n\'avez selectionne aucun element"|trans|e('js') }}');
|
alert('{{ "Vous n\'avez selectionne aucun element"|trans|e('js') }}');
|
||||||
container.dialog('close');
|
if (container.data("ui-dialog")) {
|
||||||
|
container.dialog("close");
|
||||||
|
}
|
||||||
{% elseif route.get_count_actionable() == 0 %}
|
{% elseif route.get_count_actionable() == 0 %}
|
||||||
alert('{{ "Vous n\'avez pas assez de droits sur les elements selectionnes"|trans|e('js') }}');
|
alert('{{ "Vous n\'avez pas assez de droits sur les elements selectionnes"|trans|e('js') }}');
|
||||||
container.dialog('close');
|
if (container.data("ui-dialog")) {
|
||||||
|
container.dialog("close");
|
||||||
|
}
|
||||||
{% elseif route.get_count_actionable() != route.get_count_element_received() %}
|
{% elseif route.get_count_actionable() != route.get_count_element_received() %}
|
||||||
alert('{{ "Vous n\'avez pas assez de droits sur certains elements selectionnes"|trans|e('js') }}');
|
alert('{{ "Vous n\'avez pas assez de droits sur certains elements selectionnes"|trans|e('js') }}');
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@@ -143,7 +143,7 @@
|
|||||||
ui.tab.data( "loaded", true );
|
ui.tab.data( "loaded", true );
|
||||||
});
|
});
|
||||||
|
|
||||||
ui.tab.find('span').html("<i>loading...</i>");
|
ui.tab.find('span').html("<i>{{ 'Loading'|trans }}...</i>");
|
||||||
},
|
},
|
||||||
load: function(event, ui)
|
load: function(event, ui)
|
||||||
{
|
{
|
||||||
|
@@ -75,27 +75,11 @@
|
|||||||
</style>
|
</style>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
/* Vertical Tabs */
|
/* Vertical Tabs */
|
||||||
.ui-tabs-vertical .ui-tabs-nav {
|
.ui-tabs-vertical .ui-tabs-nav { padding: .2em .1em .2em .2em; float: left; width: 12em; }
|
||||||
padding: .2em .1em .2em .2em;
|
.ui-tabs-vertical .ui-tabs-nav li { clear: left; width: 100%; border-bottom-width: 1px !important; border-right-width: 0 !important; margin: 0 -1px .2em 0; }
|
||||||
float: left;
|
.ui-tabs-vertical .ui-tabs-nav li a { display:block; }
|
||||||
width: 12em;
|
.ui-tabs-vertical .ui-tabs-nav li.ui-tabs-active { padding-bottom: 0; padding-right: .1em; border-right-width: 1px; border-right-width: 1px; }
|
||||||
}
|
.ui-tabs-vertical .ui-tabs-panel { padding: 1em; float: right;}
|
||||||
.ui-tabs-vertical .ui-tabs-nav li {
|
|
||||||
clear: left;
|
|
||||||
width: 100%;
|
|
||||||
border-bottom-width: 1px !important;
|
|
||||||
border-right-width: 0 !important;
|
|
||||||
margin: 0 -1px .2em 0;
|
|
||||||
}
|
|
||||||
.ui-tabs-vertical .ui-tabs-nav li a {
|
|
||||||
display:block;
|
|
||||||
}
|
|
||||||
.ui-tabs-vertical .ui-tabs-nav li.ui-tabs-selected {
|
|
||||||
padding-bottom: 0;
|
|
||||||
padding-right: .1em;
|
|
||||||
border-right-width: 1px;
|
|
||||||
border-right-width: 1px;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<link type="text/css" rel="stylesheet" href="{{ path('minifier', { 'f' : 'include/jslibs/jquery.contextmenu.css,include/jslibs/colorpicker/css/colorpicker.css,include/jslibs/jquery-treeview/jquery.treeview.css,skins/common/main.css,skins/geonames/geonames.css,include/jquery.image_enhancer.css' }) }}" >
|
<link type="text/css" rel="stylesheet" href="{{ path('minifier', { 'f' : 'include/jslibs/jquery.contextmenu.css,include/jslibs/colorpicker/css/colorpicker.css,include/jslibs/jquery-treeview/jquery.treeview.css,skins/common/main.css,skins/geonames/geonames.css,include/jquery.image_enhancer.css' }) }}" >
|
||||||
@@ -171,7 +155,7 @@
|
|||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<li style="float:right;">
|
<li style="float:right;">
|
||||||
<a href="#" class="" style="margin:8px 0;">
|
<a href="#" class="escamote" style="margin:8px 0;">
|
||||||
<img src="/skins/icons/workzoneEscamote.png" title="{% trans 'Close the WorkZone' %}"/>
|
<img src="/skins/icons/workzoneEscamote.png" title="{% trans 'Close the WorkZone' %}"/>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
@@ -826,7 +810,7 @@
|
|||||||
<h1>{% trans 'Theme' %}</h1>
|
<h1>{% trans 'Theme' %}</h1>
|
||||||
{% for color, file in css %}
|
{% for color, file in css %}
|
||||||
<div title="{% trans 'Selecteur de theme' %}" class="colorpicker_box"
|
<div title="{% trans 'Selecteur de theme' %}" class="colorpicker_box"
|
||||||
onclick="setCss('{{color}}')" style="width:16px;height:16px;background-color:#{{ color }};"> </div>
|
onclick="setCss('{{color}}');" style="width:16px;height:16px;background-color:#{{ color }};"> </div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -1026,7 +1010,7 @@
|
|||||||
function sessionactive(){
|
function sessionactive(){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "/session/update/",
|
url: "{{ path('update_session') }}",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
data: {
|
data: {
|
||||||
module : 1,
|
module : 1,
|
||||||
@@ -1048,14 +1032,14 @@
|
|||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
function setCss(color) {
|
function setCss(color) {
|
||||||
$("#skinCss").attr("href","/include/minify/?f=skins/prod/"+color+"/prodcolor.css");
|
$("#skinCss").attr("href","/include/minify/?f=skins/prod/"+color+"/prodcolor.css");
|
||||||
$.post("prodFeedBack.php", {
|
$.post("{{ path('save_pref') }}", {
|
||||||
action: "CSS",
|
prop: "css",
|
||||||
color: color,
|
value: color,
|
||||||
t: Math.random()
|
t: Math.random()
|
||||||
}, function(data){
|
}, function(data){
|
||||||
return;
|
return;
|
||||||
|
@@ -45,7 +45,7 @@
|
|||||||
<b><%= heading %></b>
|
<b><%= heading %></b>
|
||||||
<br />
|
<br />
|
||||||
<% _.each(reasons, function(reason) { %>
|
<% _.each(reasons, function(reason) { %>
|
||||||
<div>*<%= reason%></div>
|
<div>*<%= reason %></div>
|
||||||
<% }); %>
|
<% }); %>
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@@ -95,7 +95,7 @@
|
|||||||
|
|
||||||
}else{
|
}else{
|
||||||
var html = _.template($("#alert_error_tpl").html(), {
|
var html = _.template($("#alert_error_tpl").html(), {
|
||||||
content:datas.message
|
content:data.message
|
||||||
});
|
});
|
||||||
|
|
||||||
that.closest(".btn-group").before( html );
|
that.closest(".btn-group").before( html );
|
||||||
@@ -104,7 +104,7 @@
|
|||||||
error: function(){
|
error: function(){
|
||||||
stopAjax(that);
|
stopAjax(that);
|
||||||
var html = _.template($("#alert_error_tpl").html(), {
|
var html = _.template($("#alert_error_tpl").html(), {
|
||||||
content:datas.message
|
content:language.errorAjaxRequest
|
||||||
});
|
});
|
||||||
|
|
||||||
that.closest(".btn-group").before( html );
|
that.closest(".btn-group").before( html );
|
||||||
@@ -138,7 +138,7 @@
|
|||||||
that.closest(".wrapper-item").remove();
|
that.closest(".wrapper-item").remove();
|
||||||
}else{
|
}else{
|
||||||
var html = _.template($("#alert_error_tpl").html(), {
|
var html = _.template($("#alert_error_tpl").html(), {
|
||||||
content:datas.message
|
content:data.message
|
||||||
});
|
});
|
||||||
that.closest(".thumbnail").append(html);
|
that.closest(".thumbnail").append(html);
|
||||||
}
|
}
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
{% extends "common/index_bootstrap.html.twig" %}
|
{% extends "common/index_bootstrap.html.twig" %}
|
||||||
|
|
||||||
{% block stylesheet %}
|
{% block stylesheet %}
|
||||||
<link type="text/css" rel="stylesheet" href="{{ path('minifier', { 'f' : 'skins/report/jquery-ui.css,skins/report/jquery-ui-2.css,skins/report/report-table.css,skins/report/jquery.cluetip.css,include/jslibs/jquery.contextmenu.css' }) }}" media="screen" />
|
<link type="text/css" rel="stylesheet" href="{{ path('minifier', { 'f' : 'skins/common/main.css,skins/report/jquery-ui.css,skins/report/jquery-ui-2.css,skins/report/report-table.css,skins/report/jquery.cluetip.css,include/jslibs/jquery.contextmenu.css' }) }}" media="screen" />
|
||||||
<link type="text/css" rel="stylesheet" href="{{ path('minifier', { 'f' : 'skins/report/print.css' }) }}" media="print" />
|
<link type="text/css" rel="stylesheet" href="{{ path('minifier', { 'f' : 'skins/report/print.css' }) }}" media="print" />
|
||||||
{% endblock stylesheet %}
|
{% endblock stylesheet %}
|
||||||
|
|
||||||
@@ -38,8 +38,6 @@
|
|||||||
|
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
|
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
|
||||||
<script type="text/javascript" src="{{ path('minifier', { 'f' : 'assets/jquery/jquery.js' }) }}"></script>
|
|
||||||
<script type="text/javascript" src="{{ path('minifier', { 'f' : 'include/jslibs/jquery-ui-1.10.3.js' }) }}"></script>
|
|
||||||
<script type="text/javascript" src="{{ path('minifier', { 'g' : 'report' }) }}"></script>
|
<script type="text/javascript" src="{{ path('minifier', { 'g' : 'report' }) }}"></script>
|
||||||
<script type="text/javascript" src="{{ path('minifier', { 'f' : 'include/jslibs/jquery.gvChart-0.1.js' }) }}"></script>
|
<script type="text/javascript" src="{{ path('minifier', { 'f' : 'include/jslibs/jquery.gvChart-0.1.js' }) }}"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
@@ -18,6 +18,7 @@ $(document).ready(function(){
|
|||||||
$.datepicker.setDefaults($.datepicker.regional[jq_date]);
|
$.datepicker.setDefaults($.datepicker.regional[jq_date]);
|
||||||
|
|
||||||
$('a.infoDialog,div.infoDialog').live('click',function(event){
|
$('a.infoDialog,div.infoDialog').live('click',function(event){
|
||||||
|
console.log("click");
|
||||||
infoDialog($(this));
|
infoDialog($(this));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -168,7 +168,9 @@ $('#right-ajax button.users_rights_valid').bind('click', function(){
|
|||||||
success: function(data){
|
success: function(data){
|
||||||
var dialog = $('#time_dialog');
|
var dialog = $('#time_dialog');
|
||||||
|
|
||||||
dialog.html(data).dialog('open');
|
if (dialog.data("ui-dialog")) {
|
||||||
|
dialog.html(data).dialog('open');
|
||||||
|
}
|
||||||
|
|
||||||
$('div.switch_time', dialog).bind('click', function(event){
|
$('div.switch_time', dialog).bind('click', function(event){
|
||||||
var newclass, boxes;
|
var newclass, boxes;
|
||||||
@@ -238,9 +240,11 @@ $('#right-ajax button.users_rights_valid').bind('click', function(){
|
|||||||
base_id:base_id
|
base_id:base_id
|
||||||
},
|
},
|
||||||
success: function(data){
|
success: function(data){
|
||||||
|
|
||||||
var dialog = $('#quotas_dialog');
|
var dialog = $('#quotas_dialog');
|
||||||
dialog.html(data).dialog('open');
|
|
||||||
|
if (dialog.data("ui-dialog")) {
|
||||||
|
dialog.html(data).dialog('open');
|
||||||
|
}
|
||||||
|
|
||||||
$('div.switch_quota', dialog).bind('click', function(event){
|
$('div.switch_quota', dialog).bind('click', function(event){
|
||||||
var newclass, boxes;
|
var newclass, boxes;
|
||||||
|
@@ -64,7 +64,7 @@ $(document).ready(function(){
|
|||||||
check_new_user(true);
|
check_new_user(true);
|
||||||
};
|
};
|
||||||
buttons[language.annuler] = function(){
|
buttons[language.annuler] = function(){
|
||||||
$('#template_add_dialog').dialog('close')
|
$('#template_add_dialog').dialog('close');
|
||||||
};
|
};
|
||||||
|
|
||||||
$('#template_add_dialog').dialog({
|
$('#template_add_dialog').dialog({
|
||||||
@@ -96,7 +96,9 @@ $(document).ready(function(){
|
|||||||
$('.new_user_loader', container).hide();
|
$('.new_user_loader', container).hide();
|
||||||
if(!data.error)
|
if(!data.error)
|
||||||
{
|
{
|
||||||
container.dialog('close');
|
if (container.data("ui-dialog")) {
|
||||||
|
container.dialog('close');
|
||||||
|
}
|
||||||
$('input[name="value"]', container).val('');
|
$('input[name="value"]', container).val('');
|
||||||
$('#right-ajax').empty().addClass('loading');
|
$('#right-ajax').empty().addClass('loading');
|
||||||
p4.users.sel = [];
|
p4.users.sel = [];
|
||||||
@@ -130,14 +132,15 @@ $(document).ready(function(){
|
|||||||
|
|
||||||
|
|
||||||
$('#users_page .user_adder').live('click', function(){
|
$('#users_page .user_adder').live('click', function(){
|
||||||
|
if ($('#user_add_dialog').data("ui-dialog")) {
|
||||||
$('#user_add_dialog').dialog('open');
|
$('#user_add_dialog').dialog('open');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#users_page .template_adder').live('click', function(){
|
$('#users_page .template_adder').live('click', function(){
|
||||||
|
if ($('#template_add_dialog').data("ui-dialog")) {
|
||||||
$('#template_add_dialog').dialog('open');
|
$('#template_add_dialog').dialog('open');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#users_page_form').live('submit', function(){
|
$('#users_page_form').live('submit', function(){
|
||||||
|
@@ -62,7 +62,9 @@ function activateCgus()
|
|||||||
var currentdialog = $(this);
|
var currentdialog = $(this);
|
||||||
$('.cgus-accept',$(this)).bind('click',function(){
|
$('.cgus-accept',$(this)).bind('click',function(){
|
||||||
acceptCgus($('.cgus-accept',currentdialog).attr('id'),$('.cgus-accept',currentdialog).attr('date'));
|
acceptCgus($('.cgus-accept',currentdialog).attr('id'),$('.cgus-accept',currentdialog).attr('date'));
|
||||||
$('.cgu-dialog').dialog('close');
|
if ($('.cgu-dialog').data("ui-dialog")) {
|
||||||
|
$('.cgu-dialog').dialog('close');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
$('.cgus-cancel',$(this)).bind('click',function(){
|
$('.cgus-cancel',$(this)).bind('click',function(){
|
||||||
if(confirm(language.warningDenyCgus))
|
if(confirm(language.warningDenyCgus))
|
||||||
|
@@ -228,5 +228,6 @@ input.checkbox{
|
|||||||
display:none;
|
display:none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#tooltip .popover {
|
||||||
|
max-width: none;
|
||||||
|
}
|
||||||
|
@@ -210,14 +210,14 @@ span.ww_winTitle {
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ui-tabs .ui-tabs-nav li.ui-tabs-selected {
|
.ui-tabs .ui-tabs-nav li.ui-tabs-active {
|
||||||
background-color: #404040;
|
background-color: #404040;
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#idFrameC .ui-tabs .ui-tabs-nav li {
|
#idFrameC .ui-tabs .ui-tabs-nav li {
|
||||||
width: auto;
|
width: auto;
|
||||||
height: 52px;
|
height: 45px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
background-color: #404040;
|
background-color: #404040;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
@@ -303,14 +303,14 @@ span.ww_winTitle {
|
|||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ui-tabs .ui-tabs-nav li.ui-tabs-selected a,
|
.ui-tabs .ui-tabs-nav li.ui-tabs-active a,
|
||||||
.ui-tabs .ui-tabs-nav li.ui-state-disabled a,
|
.ui-tabs .ui-tabs-nav li.ui-state-disabled a,
|
||||||
.ui-tabs .ui-tabs-nav li.ui-state-processing a {
|
.ui-tabs .ui-tabs-nav li.ui-state-processing a {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ui-tabs .ui-tabs-nav li a,
|
.ui-tabs .ui-tabs-nav li a,
|
||||||
.ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a {
|
.ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -624,14 +624,21 @@ div.diapo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/******* POPOVERS *************************************************************/
|
/******* POPOVERS *************************************************************/
|
||||||
|
#tooltip .popover {
|
||||||
|
background-color:inherit;
|
||||||
|
}
|
||||||
|
|
||||||
.popover-inner {
|
.popover-inner {
|
||||||
background: none repeat scroll 0 0 #666666;
|
background-color: black;
|
||||||
|
border: 2px solid #444;
|
||||||
|
padding: 0px;
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.popover-inner .popover-title {
|
.popover-inner .popover-title {
|
||||||
background-color: #404040;
|
background-color: #404040;
|
||||||
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.popover-inner .popover-content {
|
.popover-inner .popover-content {
|
||||||
@@ -1769,7 +1776,7 @@ H4 {
|
|||||||
color: #333333;
|
color: #333333;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bodyprofile .ui-tabs .ui-tabs-nav li.ui-tabs-selected {
|
.bodyprofile .ui-tabs .ui-tabs-nav li.ui-tabs-active {
|
||||||
background-color: #a3a3a3;
|
background-color: #a3a3a3;
|
||||||
color: #404040;
|
color: #404040;
|
||||||
}
|
}
|
||||||
@@ -2286,7 +2293,7 @@ DIV.thesaurus U.w {
|
|||||||
background-color: #404040;
|
background-color: #404040;
|
||||||
}
|
}
|
||||||
|
|
||||||
#EDIT_MID_R li.ui-tabs-selected,
|
#EDIT_MID_R li.ui-tabs-active,
|
||||||
#EDIT_MID_R li.ui-state-active {
|
#EDIT_MID_R li.ui-state-active {
|
||||||
background-color: #404040;
|
background-color: #404040;
|
||||||
}
|
}
|
||||||
@@ -2972,7 +2979,7 @@ dans l'onglet thesaurus : arbres, menus contextuels
|
|||||||
color: #c0c0c0;
|
color: #c0c0c0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#THPD_tabs .ui-tabs-nav .ui-tabs-selected A {
|
#THPD_tabs .ui-tabs-nav .ui-tabs-active A {
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
@@ -4256,3 +4263,7 @@ dans l'onglet thesaurus : arbres, menus contextuels
|
|||||||
#lazaretBox .lazaret-file .thumbnail button img {
|
#lazaretBox .lazaret-file .thumbnail button img {
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ui-dialog-titlebar {
|
||||||
|
min-height: 20px;
|
||||||
|
}
|
||||||
|
@@ -210,20 +210,20 @@ span.ww_winTitle {
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ui-tabs .ui-tabs-nav li.ui-tabs-selected {
|
.ui-tabs .ui-tabs-nav li.ui-tabs-active {
|
||||||
background-color: #B1B1B1;
|
background-color: #B1B1B1;
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#idFrameC .ui-tabs .ui-tabs-nav li {
|
#idFrameC .ui-tabs .ui-tabs-nav li {
|
||||||
width: auto;
|
width: auto;
|
||||||
height: 52px;
|
height: 45px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
background-color: #999999;
|
background-color: #999999;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
#idFrameC .ui-tabs .ui-tabs-nav li.ui-tabs-selected {
|
#idFrameC .ui-tabs .ui-tabs-nav li.ui-tabs-active {
|
||||||
background-color: #B1B1B1;
|
background-color: #B1B1B1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -312,7 +312,7 @@ span.ww_winTitle {
|
|||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ui-tabs .ui-tabs-nav li.ui-tabs-selected a,
|
.ui-tabs .ui-tabs-nav li.ui-tabs-active a,
|
||||||
.ui-tabs .ui-tabs-nav li.ui-state-disabled a,
|
.ui-tabs .ui-tabs-nav li.ui-state-disabled a,
|
||||||
.ui-tabs .ui-tabs-nav li.ui-state-processing a {
|
.ui-tabs .ui-tabs-nav li.ui-state-processing a {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
@@ -320,7 +320,7 @@ span.ww_winTitle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.ui-tabs .ui-tabs-nav li a,
|
.ui-tabs .ui-tabs-nav li a,
|
||||||
.ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a {
|
.ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
@@ -652,13 +652,21 @@ div.diapo {
|
|||||||
|
|
||||||
/******* POPOVERS *************************************************************/
|
/******* POPOVERS *************************************************************/
|
||||||
|
|
||||||
|
#tooltip .popover {
|
||||||
|
background-color:inherit;
|
||||||
|
}
|
||||||
|
|
||||||
.popover-inner {
|
.popover-inner {
|
||||||
background: none repeat scroll 0 0 #999999;
|
background-color: #999999;
|
||||||
|
border: 2px solid #444;
|
||||||
|
padding: 0px;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.popover-inner .popover-title {
|
.popover-inner .popover-title {
|
||||||
background-color: #B1B1B1;
|
background-color: #B1B1B1;
|
||||||
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.popover-inner .popover-content {
|
.popover-inner .popover-content {
|
||||||
@@ -1820,7 +1828,7 @@ H4 {
|
|||||||
color: #333333;
|
color: #333333;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bodyprofile .ui-tabs .ui-tabs-nav li.ui-tabs-selected {
|
.bodyprofile .ui-tabs .ui-tabs-nav li.ui-tabs-active {
|
||||||
background-color: #a3a3a3;
|
background-color: #a3a3a3;
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
}
|
}
|
||||||
@@ -2351,7 +2359,7 @@ DIV.thesaurus U.w {
|
|||||||
background-color: #D9D9D9;
|
background-color: #D9D9D9;
|
||||||
}
|
}
|
||||||
|
|
||||||
#EDIT_MID_R li.ui-tabs-selected,
|
#EDIT_MID_R li.ui-tabs-active,
|
||||||
#EDIT_MID_R li.ui-state-active {
|
#EDIT_MID_R li.ui-state-active {
|
||||||
background-color: #D9D9D9;
|
background-color: #D9D9D9;
|
||||||
}
|
}
|
||||||
@@ -3051,7 +3059,7 @@ dans l'onglet thesaurus : arbres, menus contextuels
|
|||||||
color: #c0c0c0;
|
color: #c0c0c0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#THPD_tabs .ui-tabs-nav .ui-tabs-selected A {
|
#THPD_tabs .ui-tabs-nav .ui-tabs-active A {
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
@@ -4399,3 +4407,7 @@ dans l'onglet thesaurus : arbres, menus contextuels
|
|||||||
#lazaretBox .lazaret-file .thumbnail button img {
|
#lazaretBox .lazaret-file .thumbnail button img {
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ui-dialog-titlebar {
|
||||||
|
min-height: 20px;
|
||||||
|
}
|
||||||
|
@@ -155,10 +155,12 @@ var p4 = p4 || {};
|
|||||||
var $this = this;
|
var $this = this;
|
||||||
$(window).unbind('resize.DIALOG' + getLevel(level))
|
$(window).unbind('resize.DIALOG' + getLevel(level))
|
||||||
.bind('resize.DIALOG' + getLevel(level), function(){
|
.bind('resize.DIALOG' + getLevel(level), function(){
|
||||||
$this.$dialog.dialog('option', {
|
if ($this.$dialog.data("ui-dialog")) {
|
||||||
width : bodySize.x - 30,
|
$this.$dialog.dialog('option', {
|
||||||
height : bodySize.y - 30
|
width : bodySize.x - 30,
|
||||||
});
|
height : bodySize.y - 30
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -213,22 +215,24 @@ var p4 = p4 || {};
|
|||||||
return this.$dialog;
|
return this.$dialog;
|
||||||
},
|
},
|
||||||
getOption : function (optionName) {
|
getOption : function (optionName) {
|
||||||
return this.$dialog.dialog('option', optionName);
|
if (this.$dialog.data("ui-dialog")) {
|
||||||
|
return this.$dialog.dialog('option', optionName);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
},
|
},
|
||||||
setOption : function (optionName, optionValue) {
|
setOption : function (optionName, optionValue) {
|
||||||
|
|
||||||
if(optionName === 'buttons')
|
if(optionName === 'buttons')
|
||||||
{
|
{
|
||||||
optionValue = addButtons(optionValue, this);
|
optionValue = addButtons(optionValue, this);
|
||||||
}
|
}
|
||||||
|
if (this.$dialog.data("ui-dialog")) {
|
||||||
this.$dialog.dialog('option', optionName, optionValue);
|
this.$dialog.dialog('option', optionName, optionValue);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var Dialog = function () {
|
var Dialog = function () {
|
||||||
this.currentStack = {};
|
this.currentStack = {};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Dialog.prototype = {
|
Dialog.prototype = {
|
||||||
|
@@ -54,12 +54,16 @@
|
|||||||
return;
|
return;
|
||||||
},
|
},
|
||||||
error: function(){
|
error: function(){
|
||||||
$('#user_adder_dialog').dialog('destroy');
|
if ($('#user_adder_dialog').data("ui-dialog")) {
|
||||||
|
$('#user_adder_dialog').dialog('destroy');
|
||||||
|
}
|
||||||
$('#user_adder_dialog').remove();
|
$('#user_adder_dialog').remove();
|
||||||
return;
|
return;
|
||||||
},
|
},
|
||||||
timeout: function(){
|
timeout: function(){
|
||||||
$('#user_adder_dialog').dialog('destroy');
|
if ($('#user_adder_dialog').data("ui-dialog")) {
|
||||||
|
$('#user_adder_dialog').dialog('destroy');
|
||||||
|
}
|
||||||
$('#user_adder_dialog').remove();
|
$('#user_adder_dialog').remove();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -486,12 +490,16 @@
|
|||||||
return;
|
return;
|
||||||
},
|
},
|
||||||
error: function(){
|
error: function(){
|
||||||
$('#user_adder_dialog').dialog('destroy');
|
if ($('#user_adder_dialog').data("ui-dialog")) {
|
||||||
|
$('#user_adder_dialog').dialog('destroy');
|
||||||
|
}
|
||||||
$('#user_adder_dialog').remove();
|
$('#user_adder_dialog').remove();
|
||||||
return;
|
return;
|
||||||
},
|
},
|
||||||
timeout: function(){
|
timeout: function(){
|
||||||
$('#user_adder_dialog').dialog('destroy');
|
if ($('#user_adder_dialog').data("ui-dialog")) {
|
||||||
|
$('#user_adder_dialog').dialog('destroy');
|
||||||
|
}
|
||||||
$('#user_adder_dialog').remove();
|
$('#user_adder_dialog').remove();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@@ -27,10 +27,15 @@ var p4 = p4 || {};
|
|||||||
success: function(data) {
|
success: function(data) {
|
||||||
var cache = $("#idFrameC #baskets");
|
var cache = $("#idFrameC #baskets");
|
||||||
|
|
||||||
$(".SSTT", cache).droppable('destroy');
|
if ($(".SSTT", cache).data("ui-droppable")) {
|
||||||
$('.bloc', cache).droppable('destroy');
|
$(".SSTT", cache).droppable('destroy');
|
||||||
|
}
|
||||||
cache.accordion('destroy').empty().append(data);
|
if ($(".bloc", cache).data("ui-droppable")) {
|
||||||
|
$('.bloc', cache).droppable('destroy');
|
||||||
|
}
|
||||||
|
if (cache.data("ui-accordion")) {
|
||||||
|
cache.accordion('destroy').empty().append(data);
|
||||||
|
}
|
||||||
|
|
||||||
activeBaskets();
|
activeBaskets();
|
||||||
$('.basketTips').tooltip({
|
$('.basketTips').tooltip({
|
||||||
@@ -124,7 +129,10 @@ var p4 = p4 || {};
|
|||||||
humane.info(data.message);
|
humane.info(data.message);
|
||||||
p4.WorkZone.Selection.remove(id);
|
p4.WorkZone.Selection.remove(id);
|
||||||
|
|
||||||
$('.wrapCHIM_' + id).find('.CHIM').draggable('destroy');
|
if ($('.wrapCHIM_' + id).find('.CHIM').data("ui-draggable")) {
|
||||||
|
$('.wrapCHIM_' + id).find('.CHIM').draggable('destroy');
|
||||||
|
}
|
||||||
|
|
||||||
$('.wrapCHIM_' + id).remove();
|
$('.wrapCHIM_' + id).remove();
|
||||||
|
|
||||||
if (context === "reg_train_basket") {
|
if (context === "reg_train_basket") {
|
||||||
@@ -294,8 +302,10 @@ var p4 = p4 || {};
|
|||||||
header.removeClass('unread');
|
header.removeClass('unread');
|
||||||
|
|
||||||
var dest = header.next();
|
var dest = header.next();
|
||||||
|
if (dest.data("ui-droppable")) {
|
||||||
dest.droppable('destroy').empty().removeClass('loading');
|
dest.droppable('destroy')
|
||||||
|
}
|
||||||
|
dest.empty().removeClass('loading');
|
||||||
|
|
||||||
dest.append(data);
|
dest.append(data);
|
||||||
|
|
||||||
@@ -552,40 +562,40 @@ var p4 = p4 || {};
|
|||||||
getContent(sstt.prev());
|
getContent(sstt.prev());
|
||||||
},
|
},
|
||||||
'close': function() {
|
'close': function() {
|
||||||
// var frame = $('#idFrameC'), that = this;
|
var frame = $('#idFrameC'), that = this;
|
||||||
//
|
|
||||||
// if (!frame.hasClass('closed'))
|
if (!frame.hasClass('closed'))
|
||||||
// {
|
{
|
||||||
// frame.data('openwidth', frame.width());
|
frame.data('openwidth', frame.width());
|
||||||
// frame.animate({width: 100},
|
frame.animate({width: 100},
|
||||||
// 300,
|
300,
|
||||||
// 'linear',
|
'linear',
|
||||||
// function() {
|
function() {
|
||||||
// answerSizer();
|
answerSizer();
|
||||||
// linearize();
|
linearize();
|
||||||
// $('#answers').trigger('resize');
|
$('#answers').trigger('resize');
|
||||||
// });
|
});
|
||||||
// frame.addClass('closed');
|
frame.addClass('closed');
|
||||||
// $('.escamote', frame).hide();
|
$('.escamote', frame).hide();
|
||||||
// $('li.ui-tabs-selected', frame).removeClass('ui-tabs-selected');
|
$('li.ui-tabs-selected', frame).removeClass('ui-tabs-selected');
|
||||||
// frame.unbind('click.escamote').bind('click.escamote', function() {
|
frame.unbind('click.escamote').bind('click.escamote', function() {
|
||||||
// that.open();
|
that.open();
|
||||||
// });
|
});
|
||||||
// }
|
}
|
||||||
},
|
},
|
||||||
'open': function() {
|
'open': function() {
|
||||||
// var frame = $('#idFrameC');
|
var frame = $('#idFrameC');
|
||||||
//
|
|
||||||
// if (frame.hasClass('closed'))
|
if (frame.hasClass('closed'))
|
||||||
// {
|
{
|
||||||
// var width = frame.data('openwidth') ? frame.data('openwidth') : 300;
|
var width = frame.data('openwidth') ? frame.data('openwidth') : 300;
|
||||||
// frame.css({width: width});
|
frame.css({width: width});
|
||||||
// answerSizer();
|
answerSizer();
|
||||||
// linearize();
|
linearize();
|
||||||
// frame.removeClass('closed');
|
frame.removeClass('closed');
|
||||||
// $('.escamote', frame).show();
|
$('.escamote', frame).show();
|
||||||
// frame.unbind('click.escamote');
|
frame.unbind('click.escamote');
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
@@ -25,9 +25,15 @@ function setSizeLimits()
|
|||||||
if(!$('#EDITWINDOW').is(':visible'))
|
if(!$('#EDITWINDOW').is(':visible'))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
$('#EDIT_TOP').resizable('option','maxHeight', ($('#EDIT_ALL').height() - $('#buttonEditing').height() - 10 - 160));
|
if ($('#EDIT_TOP').data("ui-resizable")) {
|
||||||
$('#divS_wrapper').resizable('option','maxWidth', ($('#EDIT_MID_L').width() - 270));
|
$('#EDIT_TOP').resizable('option','maxHeight', ($('#EDIT_ALL').height() - $('#buttonEditing').height() - 10 - 160));
|
||||||
$('#EDIT_MID_R').resizable('option','maxWidth', ($('#EDIT_MID_R').width() + $('#idEditZone').width() - 240));
|
}
|
||||||
|
if ($('#divS_wrapper').data("ui-resizable")) {
|
||||||
|
$('#divS_wrapper').resizable('option','maxWidth', ($('#EDIT_MID_L').width() - 270));
|
||||||
|
}
|
||||||
|
if ($('#EDIT_MID_R').data("ui-resizable")) {
|
||||||
|
$('#EDIT_MID_R').resizable('option','maxWidth', ($('#EDIT_MID_R').width() + $('#idEditZone').width() - 240));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function edit_kdwn(evt, src)
|
function edit_kdwn(evt, src)
|
||||||
@@ -303,7 +309,10 @@ function editField(evt, meta_struct_id)
|
|||||||
dateObj.setMonth((d[1]-1));
|
dateObj.setMonth((d[1]-1));
|
||||||
dateObj.setDate(d[2]);
|
dateObj.setDate(d[2]);
|
||||||
}
|
}
|
||||||
$("#idEditDateZone", p4.edit.editBox).datepicker('setDate', dateObj);
|
|
||||||
|
if ($("#idEditDateZone", p4.edit.editBox).data("ui-datepicker")) {
|
||||||
|
$("#idEditDateZone", p4.edit.editBox).datepicker('setDate', dateObj);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
p4.edit.textareaIsDirty = false;
|
p4.edit.textareaIsDirty = false;
|
||||||
@@ -1511,14 +1520,16 @@ function preset_copy()
|
|||||||
{
|
{
|
||||||
if(p4.edit.T_fields[i]._status == 1)
|
if(p4.edit.T_fields[i]._status == 1)
|
||||||
{
|
{
|
||||||
var c = p4.edit.T_fields[i]._value == "" ? "" : "checked=\"1\"";
|
var c = p4.edit.T_fields[i]._value === "" ? "" : "checked=\"1\"";
|
||||||
var v = p4.edit.T_fields[i]._value;
|
var v = p4.edit.T_fields[i]._value;
|
||||||
html += "<div><label class=\"checkbox\" for=\"new_preset_" + p4.edit.T_fields[i].name + "\"><input type=\"checkbox\" class=\"checkbox\" id=\"new_preset_" + p4.edit.T_fields[i].name + "\" value=\"" + i + "\" " + c + "/>" + "<b>" + p4.edit.T_fields[i].label + " : </b></label> ";
|
html += "<div><label class=\"checkbox\" for=\"new_preset_" + p4.edit.T_fields[i].name + "\"><input type=\"checkbox\" class=\"checkbox\" id=\"new_preset_" + p4.edit.T_fields[i].name + "\" value=\"" + i + "\" " + c + "/>" + "<b>" + p4.edit.T_fields[i].label + " : </b></label> ";
|
||||||
html += cleanTags(p4.edit.T_fields[i]._value) + "</div>";
|
html += cleanTags(p4.edit.T_fields[i]._value) + "</div>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$("#Edit_copyPreset_dlg FORM DIV").html(html);
|
$("#Edit_copyPreset_dlg FORM DIV").html(html);
|
||||||
$("#Edit_copyPreset_dlg").dialog('open');
|
if ( $("#Edit_copyPreset_dlg").data("ui-dialog")) {
|
||||||
|
$("#Edit_copyPreset_dlg").dialog('open');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function preset_paint(data)
|
function preset_paint(data)
|
||||||
@@ -1586,8 +1597,9 @@ function preset_load(preset_id)
|
|||||||
p,
|
p,
|
||||||
function(data, textStatus)
|
function(data, textStatus)
|
||||||
{
|
{
|
||||||
|
if ($("#Edit_copyPreset_dlg").data("ui-dialog")) {
|
||||||
$("#Edit_copyPreset_dlg").dialog("close");
|
$("#Edit_copyPreset_dlg").dialog("close");
|
||||||
|
}
|
||||||
|
|
||||||
for(i in p4.edit.T_fields)
|
for(i in p4.edit.T_fields)
|
||||||
{
|
{
|
||||||
@@ -2043,7 +2055,9 @@ function startThisEditing(sbas_id,what,regbasprid,ssel)
|
|||||||
{
|
{
|
||||||
preset_paint(data);
|
preset_paint(data);
|
||||||
|
|
||||||
$("#Edit_copyPreset_dlg").dialog("close");
|
if ($("#Edit_copyPreset_dlg").data("ui-dialog")) {
|
||||||
|
$("#Edit_copyPreset_dlg").dialog("close");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@@ -648,7 +648,7 @@ function activateCgus()
|
|||||||
width:800,
|
width:800,
|
||||||
height:500,
|
height:500,
|
||||||
open:function() {
|
open:function() {
|
||||||
// $this.parents(".ui-dialog:first").find(".ui-dialog-titlebar-close").remove();
|
$this.parents(".ui-dialog:first").find(".ui-dialog-titlebar-close").remove();
|
||||||
$('.cgus-accept',$(this)).bind('click',function(){
|
$('.cgus-accept',$(this)).bind('click',function(){
|
||||||
acceptCgus($('.cgus-accept',$this).attr('id'),$('.cgus-accept',$this).attr('date'));
|
acceptCgus($('.cgus-accept',$this).attr('id'),$('.cgus-accept',$this).attr('date'));
|
||||||
$this.dialog('close').remove();
|
$this.dialog('close').remove();
|
||||||
@@ -688,12 +688,10 @@ function triggerShortcuts()
|
|||||||
};
|
};
|
||||||
|
|
||||||
$('#keyboard-dialog').dialog({
|
$('#keyboard-dialog').dialog({
|
||||||
|
|
||||||
closeOnEscape:false,
|
closeOnEscape:false,
|
||||||
resizable:false,
|
resizable:false,
|
||||||
draggable:false,
|
draggable:false,
|
||||||
modal:true,
|
modal:true,
|
||||||
draggable:false,
|
|
||||||
width:600,
|
width:600,
|
||||||
height:400,
|
height:400,
|
||||||
zIndex:1400,
|
zIndex:1400,
|
||||||
@@ -703,8 +701,13 @@ function triggerShortcuts()
|
|||||||
},
|
},
|
||||||
close : function(){
|
close : function(){
|
||||||
|
|
||||||
if($('#keyboard-stop').get(0).checked)
|
if($('#keyboard-stop').get(0).checked) {
|
||||||
$('#keyboard-dialog').dialog('destroy').remove();
|
var dialog = $('#keyboard-dialog');
|
||||||
|
if (dialog.data("ui-dialog")) {
|
||||||
|
dialog.dialog('destroy');
|
||||||
|
}
|
||||||
|
dialog.remove();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}).dialog('option','buttons',buttons).dialog('open');
|
}).dialog('option','buttons',buttons).dialog('open');
|
||||||
return false;
|
return false;
|
||||||
@@ -1000,8 +1003,6 @@ $(document).ready(function(){
|
|||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
var $this = $(this);
|
var $this = $(this);
|
||||||
|
|
||||||
var append = $this.hasClass('append');
|
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type:"GET",
|
type:"GET",
|
||||||
url : $this.attr('href')+(event.renew === true ? '?renew=true' : ''),
|
url : $this.attr('href')+(event.renew === true ? '?renew=true' : ''),
|
||||||
@@ -1009,18 +1010,19 @@ $(document).ready(function(){
|
|||||||
success : function(data){
|
success : function(data){
|
||||||
if(data.texte !== false && data.titre !== false)
|
if(data.texte !== false && data.titre !== false)
|
||||||
{
|
{
|
||||||
$("#DIALOG").dialog('destroy').attr('title',data.titre)
|
if ($("#DIALOG").data("ui-dialog")) {
|
||||||
|
$("#DIALOG").dialog('destroy');
|
||||||
|
}
|
||||||
|
$("#DIALOG").attr('title',data.titre)
|
||||||
.empty()
|
.empty()
|
||||||
.append(data.texte)
|
.append(data.texte)
|
||||||
.dialog({
|
.dialog({
|
||||||
|
|
||||||
autoOpen:false,
|
autoOpen:false,
|
||||||
closeOnEscape:true,
|
closeOnEscape:true,
|
||||||
resizable:false,
|
resizable:false,
|
||||||
draggable:false,
|
draggable:false,
|
||||||
modal:true,
|
modal:true,
|
||||||
buttons:buttons,
|
buttons:buttons,
|
||||||
draggable:false,
|
|
||||||
width:650,
|
width:650,
|
||||||
height:250,
|
height:250,
|
||||||
overlay: {
|
overlay: {
|
||||||
@@ -1098,7 +1100,7 @@ $(document).ready(function(){
|
|||||||
|
|
||||||
$('#idFrameC .escamote').bind('click', function(event){
|
$('#idFrameC .escamote').bind('click', function(event){
|
||||||
event.stopImmediatePropagation();
|
event.stopImmediatePropagation();
|
||||||
// p4.WorkZone.close();
|
p4.WorkZone.close();
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -2332,9 +2334,9 @@ function checkDeleteThis(type, el)
|
|||||||
|
|
||||||
var lst = '';
|
var lst = '';
|
||||||
|
|
||||||
if(type == 'IMGT')
|
if(type === 'IMGT')
|
||||||
lst = p4.Results.Selection.serialize();
|
lst = p4.Results.Selection.serialize();
|
||||||
if(type == 'CHIM')
|
if(type === 'CHIM')
|
||||||
lst = p4.WorkZone.Selection.serialize();
|
lst = p4.WorkZone.Selection.serialize();
|
||||||
|
|
||||||
deleteThis(lst);
|
deleteThis(lst);
|
||||||
@@ -2377,7 +2379,10 @@ function shareThis(bas,rec)
|
|||||||
|
|
||||||
function printThis(value)
|
function printThis(value)
|
||||||
{
|
{
|
||||||
$('#DIALOG').dialog('destroy').attr('title', 'Print')
|
if ($("#DIALOG").data("ui-dialog")) {
|
||||||
|
$("#DIALOG").dialog('destroy');
|
||||||
|
}
|
||||||
|
$('#DIALOG').attr('title', 'Print')
|
||||||
.empty().addClass('loading')
|
.empty().addClass('loading')
|
||||||
.dialog({
|
.dialog({
|
||||||
resizable:false,
|
resizable:false,
|
||||||
@@ -2569,7 +2574,12 @@ function doDelete(lst)
|
|||||||
chim = $('.CHIM_'+n),
|
chim = $('.CHIM_'+n),
|
||||||
stories = $('.STORY_'+n);
|
stories = $('.STORY_'+n);
|
||||||
$('.doc_infos', imgt).remove();
|
$('.doc_infos', imgt).remove();
|
||||||
imgt.unbind("click").removeAttr("ondblclick").removeClass("selected").draggable("destroy").removeClass("IMGT").find("img").unbind();
|
imgt.unbind("click").removeAttr("ondblclick").removeClass("selected").removeClass("IMGT").find("img").unbind();
|
||||||
|
|
||||||
|
if (imgt.data("ui-draggable")) {
|
||||||
|
imgt.draggable("destroy");
|
||||||
|
}
|
||||||
|
|
||||||
imgt.find(".thumb img").attr("src","/skins/icons/deleted.png").css({
|
imgt.find(".thumb img").attr("src","/skins/icons/deleted.png").css({
|
||||||
width:'100%',
|
width:'100%',
|
||||||
height:'auto',
|
height:'auto',
|
||||||
@@ -2606,11 +2616,24 @@ function archiveBasket(basket_id)
|
|||||||
success: function(data){
|
success: function(data){
|
||||||
if(data.success)
|
if(data.success)
|
||||||
{
|
{
|
||||||
$('#SSTT_'+basket_id).next().slideUp().droppable('destroy').remove();
|
var basket = $('#SSTT_'+basket_id);
|
||||||
$('#SSTT_'+basket_id).slideUp().droppable('destroy').remove();
|
var next = basket.next();
|
||||||
|
|
||||||
if($('#baskets .SSTT').length == 0)
|
if (next.data("ui-droppable")) {
|
||||||
|
next.droppable('destroy');
|
||||||
|
}
|
||||||
|
|
||||||
|
next.slideUp().remove();
|
||||||
|
|
||||||
|
if (basket.data("ui-droppable")) {
|
||||||
|
basket.droppable('destroy');
|
||||||
|
}
|
||||||
|
|
||||||
|
basket.slideUp().remove();
|
||||||
|
|
||||||
|
if($('#baskets .SSTT').length === 0) {
|
||||||
return p4.WorkZone.refresh(false);
|
return p4.WorkZone.refresh(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -2624,7 +2647,10 @@ function archiveBasket(basket_id)
|
|||||||
|
|
||||||
function deleteBasket(item)
|
function deleteBasket(item)
|
||||||
{
|
{
|
||||||
$('#DIALOG').dialog("destroy");
|
if ($("#DIALOG").data("ui-dialog")) {
|
||||||
|
$("#DIALOG").dialog('destroy');
|
||||||
|
}
|
||||||
|
|
||||||
var k = $(item).attr('id').split('_').slice(1,2).pop(); // id de chutier
|
var k = $(item).attr('id').split('_').slice(1,2).pop(); // id de chutier
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
@@ -2636,11 +2662,24 @@ function deleteBasket(item)
|
|||||||
success: function(data){
|
success: function(data){
|
||||||
if(data.success)
|
if(data.success)
|
||||||
{
|
{
|
||||||
$('#SSTT_'+k).next().slideUp().droppable('destroy').remove();
|
var basket = $('#SSTT_'+k);
|
||||||
$('#SSTT_'+k).slideUp().droppable('destroy').remove();
|
var next = basket.next();
|
||||||
|
|
||||||
if($('#baskets .SSTT').length == 0)
|
if (next.data("ui-droppable")) {
|
||||||
|
next.droppable('destroy');
|
||||||
|
}
|
||||||
|
|
||||||
|
next.slideUp().remove();
|
||||||
|
|
||||||
|
if (basket.data("ui-droppable")) {
|
||||||
|
basket.droppable('destroy');
|
||||||
|
}
|
||||||
|
|
||||||
|
basket.slideUp().remove();
|
||||||
|
|
||||||
|
if($('#baskets .SSTT').length === 0) {
|
||||||
return p4.WorkZone.refresh(false);
|
return p4.WorkZone.refresh(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -2719,9 +2758,7 @@ function advSearch(event)
|
|||||||
{
|
{
|
||||||
event.cancelBubble = true;
|
event.cancelBubble = true;
|
||||||
// alternateSearch(false);
|
// alternateSearch(false);
|
||||||
console.log("advSearch");
|
|
||||||
$('#idFrameC .tabs a.adv_search').trigger('click');
|
$('#idFrameC .tabs a.adv_search').trigger('click');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function start_page_selector()
|
function start_page_selector()
|
||||||
@@ -2800,7 +2837,7 @@ function lookBox(el,event)
|
|||||||
function showAnswer(p)
|
function showAnswer(p)
|
||||||
{
|
{
|
||||||
var o;
|
var o;
|
||||||
if(p=='Results')
|
if(p ==='Results')
|
||||||
{
|
{
|
||||||
// on montre les results
|
// on montre les results
|
||||||
if(o = document.getElementById("AnswerExplain"))
|
if(o = document.getElementById("AnswerExplain"))
|
||||||
@@ -3078,13 +3115,19 @@ function set_up_feed_box(data)
|
|||||||
$('#entry_'+id).replaceWith(data.datas);
|
$('#entry_'+id).replaceWith(data.datas);
|
||||||
$('#entry_'+id).hide().fadeIn();
|
$('#entry_'+id).hide().fadeIn();
|
||||||
}
|
}
|
||||||
$feed_box.dialog('destroy');
|
|
||||||
|
if ($feed_box.data("ui-dialog")) {
|
||||||
|
$feed_box.dialog('destroy');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
$('button.close_dialog').bind('click', function(){
|
$('button.close_dialog').bind('click', function(){
|
||||||
$feed_box.dialog('destroy');
|
if($feed_box.data("ui-dialog")) {
|
||||||
|
$feed_box.dialog('destroy');
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
|
@@ -1079,8 +1079,10 @@ function update_tab(submit, form, f_val)
|
|||||||
//load the result
|
//load the result
|
||||||
submit.empty().append(data.rs);
|
submit.empty().append(data.rs);
|
||||||
//get selected li index
|
//get selected li index
|
||||||
var selected_tab = $tabs.tabs('option', 'active');
|
if ($tabs.data("ui-tabs")) {
|
||||||
if( typeof(selected_tab) == 'undefined')
|
var selected_tab = $tabs.tabs('option', 'active');
|
||||||
|
}
|
||||||
|
if( typeof(selected_tab) === 'undefined')
|
||||||
selected_tab = 0;
|
selected_tab = 0;
|
||||||
class_selected_tab = $('.tabb:visible li').eq(selected_tab).attr('class');
|
class_selected_tab = $('.tabb:visible li').eq(selected_tab).attr('class');
|
||||||
//hide show the next and previous button according to the results
|
//hide show the next and previous button according to the results
|
||||||
|
Reference in New Issue
Block a user