fix admin reoladTree callback

fix admin leftPanel render method
fix admin reorder submit callback
remove usless images
This commit is contained in:
Florian BLOUET
2015-11-27 16:27:49 +01:00
parent 34689daaa8
commit cdff031887
96 changed files with 47 additions and 95 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@@ -843,7 +843,7 @@ function updateEditSelectedRecords(evt) {
} }
} }
$('#idFrameE .ww_status', p4.edit.editBox).html(nrecsel + " record(s) selected for editing"); //$('#idFrameE .ww_status', p4.edit.editBox).html(nrecsel + " record(s) selected for editing");
updateFieldDisplay(); updateFieldDisplay();

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 81 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 323 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 350 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 300 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 344 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 184 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 334 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 323 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 305 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 75 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 338 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 393 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 148 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 333 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 98 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 180 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 180 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 110 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 119 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 827 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 81 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 323 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 581 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 350 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 601 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 344 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 545 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 334 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 552 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 323 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 574 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 305 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 560 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 65 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 338 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 333 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 98 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 180 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 180 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 110 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 119 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 827 B

View File

@@ -4,8 +4,7 @@ $basketsColor: #076882;
@import '../../_shared/styles/variables'; @import '../../_shared/styles/variables';
::-webkit-scrollbar-track ::-webkit-scrollbar-track {
{
border-radius: 0; border-radius: 0;
background-color: $darkerBackgroundColor; background-color: $darkerBackgroundColor;
} }
@@ -26,6 +25,7 @@ $basketsColor: #076882;
height: 0; height: 0;
display: none; display: none;
} }
::-webkit-scrollbar-corner { ::-webkit-scrollbar-corner {
background-color: transparent; background-color: transparent;
} }
@@ -100,7 +100,6 @@ EM {
cursor: pointer; cursor: pointer;
} }
.ui-state-default, .ui-widget-content .ui-state-default, .ui-state-default, .ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default { .ui-widget-header .ui-state-default {
font-weight: normal; font-weight: normal;
@@ -125,7 +124,6 @@ EM {
border: 1px solid #FFFFFF; border: 1px solid #FFFFFF;
} }
#maincontainer { #maincontainer {
min-width: 970px; min-width: 970px;
min-height: 500px; min-height: 500px;
@@ -185,12 +183,12 @@ div#PREVIEWTITLEWRAPPER {
height: 16px; height: 16px;
} }
.ww_status { /*.ww_status {
background-image: url('#{$skinsImagesPath}ww_title.gif'); background-image: url('#{$skinsImagesPath}ww_title.gif');
background-repeat: repeat-x; background-repeat: repeat-x;
color: #0077bc; color: #0077bc;
font-size: 8pt; font-size: 8pt;
} }*/
span.ww_winTitle { span.ww_winTitle {
letter-spacing: 1px; letter-spacing: 1px;
@@ -199,7 +197,6 @@ span.ww_winTitle {
font-weight: bold; font-weight: bold;
} }
#divpage { #divpage {
background-color: #212121; background-color: #212121;
padding: 10px 0; padding: 10px 0;
@@ -238,28 +235,25 @@ span.ww_winTitle {
} }
.cont_infos { .cont_infos {
position: absolute; position: absolute;
bottom: 10px; bottom: 10px;
right: 10px;
height: 60px; height: 60px;
top: auto; top: auto;
text-align: center; text-align: center;
width: 70px; width: 70px;
right: 60px; right: 60px;
} div {
.cont_infos div {
line-height: 20px; line-height: 20px;
font-size: $smallFontSize; font-size: $smallFontSize;
font-weight: bold; font-weight: bold;
} }
span {
.cont_infos span {
cursor: pointer; cursor: pointer;
font-size: $smallFontSize; font-size: $smallFontSize;
} }
}
#SPANTITLE img { #SPANTITLE img {
height: 16px; height: 16px;
@@ -267,19 +261,14 @@ span.ww_winTitle {
margin: 0 10px; margin: 0 10px;
} }
.cgu-dialog blockquote p {
margin: 10px 30px 10px 0;
}
.cgu-dialog blockquote { .cgu-dialog blockquote {
margin: 10px 30px; margin: 10px 30px;
overflow: auto; overflow: auto;
max-height: 400px; max-height: 400px;
p {
margin: 10px 30px 10px 0;
}
} }
.chim-wrapper { .chim-wrapper {
position: relative; position: relative;
@@ -307,7 +296,6 @@ span.ww_winTitle {
z-index: 10000; z-index: 10000;
} }
/******* DIALOGS **************************************************************/ /******* DIALOGS **************************************************************/
#dialog_dwnl h1 { #dialog_dwnl h1 {
@@ -340,8 +328,6 @@ span.ww_winTitle {
position: relative; position: relative;
} }
/******* ORDER MANAGER ********************************************************/ /******* ORDER MANAGER ********************************************************/
#order_manager tr.order_row { #order_manager tr.order_row {
@@ -365,7 +351,6 @@ span.ww_winTitle {
margin: 0 5px; margin: 0 5px;
} }
#order_manager .order_list .thumb { #order_manager .order_list .thumb {
float: left; float: left;
position: relative; position: relative;
@@ -409,7 +394,6 @@ H4 {
MARGIN-LEFT: 5px MARGIN-LEFT: 5px
} }
#notification_trigger .counter { #notification_trigger .counter {
position: relative; position: relative;
*position: static; *position: static;
@@ -448,9 +432,6 @@ H4 {
cursor: col-resize; cursor: col-resize;
} }
/******* POPOVERS *************************************************************/ /******* POPOVERS *************************************************************/
#tooltip .popover { #tooltip .popover {
@@ -477,6 +458,7 @@ H4 {
border-color: $darkerBorderColor; border-color: $darkerBorderColor;
} }
} }
.dragover { .dragover {
BACKGROUND-COLOR: #fff100 BACKGROUND-COLOR: #fff100
} }
@@ -530,8 +512,6 @@ H4 {
} }
} }
@import 'ui-components/jquery-ui'; @import 'ui-components/jquery-ui';
@import 'ui-components/context-menu'; @import 'ui-components/context-menu';
@import 'ui-components/forms'; @import 'ui-components/forms';

View File

@@ -1,33 +1,8 @@
/******* ACTIONS **************************************************************/ /******* ACTIONS **************************************************************/
.toolbutton {
float: left;
width: 70px;
height: 50px;
overflow: hidden;
margin: 0px;
cursor: pointer;
}
.toolbuttonimg { /*#TOOL_disktt {
float: left;
width: 50px;
margin: 0px 10px 0px;
height: 30px;
overflow: hidden;
text-align: center;
}
.toolbuttonlabel {
float: left;
width: 70px;
height: 20px;
overflow: visible;
text-align: center;
}
#TOOL_disktt {
background-image: url('#{$skinsImagesPath}disktt_0.gif'); background-image: url('#{$skinsImagesPath}disktt_0.gif');
background-position: center center; background-position: center center;
background-repeat: no-repeat; background-repeat: no-repeat;
@@ -122,7 +97,7 @@
background-position: center center; background-position: center center;
background-repeat: no-repeat; background-repeat: no-repeat;
} }
*/
.contextMenuTrigger { .contextMenuTrigger {
color: $textPrimaryColor; color: $textPrimaryColor;
font-size: $smallFontSize; font-size: $smallFontSize;

View File

@@ -1,14 +1,6 @@
/******* GUI ******************************************************************/ /******* GUI ******************************************************************/
/*.gui_grip {
background-image: url('#{$skinsImagesPath}grip.gif');
background-position: 0 0;
background-repeat: no-repeat;
height: 19px;
width: 5px;
}*/
.gui_vsplitter,.ui-resizable-e { .gui_vsplitter,.ui-resizable-e {
top: 50%; top: 50%;
width: 13px; width: 13px;
@@ -75,7 +67,7 @@
width: 12px; width: 12px;
height: 12px; height: 12px;
float: left; float: left;
background-image: url('#{$skinsImagesPath}ccoch0.gif'); background-image: url('#{$iconsPath}ccoch0.gif');
cursor: pointer; cursor: pointer;
} }
@@ -85,7 +77,7 @@
width: 12px; width: 12px;
height: 12px; height: 12px;
float: left; float: left;
background-image: url('#{$skinsImagesPath}ccoch1.gif'); background-image: url('#{$iconsPath}ccoch1.gif');
cursor: pointer; cursor: pointer;
} }
@@ -95,6 +87,6 @@
width: 12px; width: 12px;
height: 12px; height: 12px;
float: left; float: left;
background-image: url('#{$skinsImagesPath}ccoch2.gif'); background-image: url('#{$iconsPath}ccoch2.gif');
cursor: pointer; cursor: pointer;
} }

View File

@@ -26,17 +26,20 @@ $modalBackground: $darkerBackgroundColor !default;
.ui-tabs { .ui-tabs {
.ui-tabs-nav { .ui-tabs-nav {
li { li {
background-color: $lightBackgroundColor; //$tabsNavBg; background-color: lighten($lightBackgroundColor, 5); //$tabsNavBg;
height: 30px; height: 30px;
border: none; border: none;
overflow: hidden; overflow: hidden;
a { a {
padding: 5px 8px; padding: 5px 8px;
//font-size: 0.8em; //font-size: 0.8em;
font-size: $xmediumFontSize;
font-weight: normal; font-weight: normal;
color: $lightTextColor; // more contrasted color color: $mediumTextColor; // more contrasted color
} }
&.ui-tabs-active { &.ui-tabs-active {
font-size: $mediumFontSize;
color: $lightTextColor;
background-color: $mediumBackgroundColor; //$tabsNavBgActive; background-color: $mediumBackgroundColor; //$tabsNavBgActive;
border: none; border: none;
} }

View File

@@ -1,6 +1,6 @@
{% if reloadTree %} {% if reloadTree %}
<script type="text/javascript"> <script type="text/javascript">
reloadTree('base:{{ collection.get_sbas_id() }}'); AdminApp.LeftView.reloadTree('base:{{ collection.get_sbas_id() }}');
</script> </script>
{% endif %} {% endif %}
@@ -307,9 +307,9 @@
success: function(datas) { success: function(datas) {
if(datas.success) { if(datas.success) {
if(submitLink.hasClass('reload')) { if(submitLink.hasClass('reload')) {
reloadTree('collection:{{ collection.get_base_id() }}', true); AdminApp.LeftView.reloadTree('collection:{{ collection.get_base_id() }}', true);
} else if(submitLink.hasClass('reload-tree')) { } else if(submitLink.hasClass('reload-tree')) {
reloadTree('bases:bases', true); AdminApp.LeftView.reloadTree('bases:bases', true);
} }
if ("undefined" !== typeof datas.msg) { if ("undefined" !== typeof datas.msg) {

View File

@@ -86,10 +86,12 @@
$this.prop('disabled',true) $this.prop('disabled',true)
}, },
success : function(datas) { success : function(datas) {
console.log('reorder success')
var html = _.template($("#alert_"+ (datas.success ? "success" : "error") +"_tpl").html(), { var html = _.template($("#alert_"+ (datas.success ? "success" : "error") +"_tpl").html(), {
content:datas.msg content:datas.msg
}); });
$('#notification').html(html); $('#notification').html(html);
AdminApp.LeftView.reloadTree('bases:bases', true);
}, },
complete : function() { complete : function() {
$this.prop('disabled',false) $this.prop('disabled',false)

View File

@@ -1,6 +1,6 @@
{% if reloadTree %} {% if reloadTree %}
<script type="text/javascript"> <script type="text/javascript">
reloadTree('bases:bases'); AdminApp.LeftView.reloadTree('bases:bases');
</script> </script>
{% endif %} {% endif %}

View File

@@ -1,6 +1,6 @@
{% if reloadTree %} {% if reloadTree %}
<script type="text/javascript"> <script type="text/javascript">
reloadTree('bases:bases'); AdminApp.LeftView.reloadTree('bases:bases');
</script> </script>
{% endif %} {% endif %}
@@ -371,9 +371,9 @@
success: function(datas) { success: function(datas) {
if(datas.success) { if(datas.success) {
if(submitLink.hasClass('reload')) { if(submitLink.hasClass('reload')) {
reloadTree('base:{{ databox.get_sbas_id() }}', true); AdminApp.LeftView.reloadTree('base:{{ databox.get_sbas_id() }}', true);
} else if(submitLink.hasClass('reload-tree')) { } else if(submitLink.hasClass('reload-tree')) {
reloadTree('bases:bases', true); AdminApp.LeftView.reloadTree('bases:bases', true);
} }
} else { } else {
alert(datas.msg); alert(datas.msg);

View File

@@ -7,7 +7,7 @@
<div class="clksbas"> <div class="clksbas">
<span onclick="deploy(this, '.sbascont_{{sbas_id}}' );" class="deployer_closed" ></span> <span onclick="deploy(this, '.sbascont_{{sbas_id}}' );" class="deployer_closed" ></span>
<input type="checkbox" checked style="display: none;" id="sbasChkr_{{sbas_id}}_{{unique_id}}" class="sbasChkr_{{sbas_id}}" <input type="checkbox" checked style="display: none;" id="sbasChkr_{{sbas_id}}_{{unique_id}}" class="sbasChkr_{{sbas_id}}"
onchange="clksbas(this, {{sbas_id}});" />AAAA onchange="clksbas(this, {{sbas_id}});" />
<label id="ADVSRCH_SBAS_LABEL_{{sbas_id}}" style="display: inline" class="checkbox danger_indicator" for="sbasChkr_{{sbas_id}}_{{unique_id}}"> <label id="ADVSRCH_SBAS_LABEL_{{sbas_id}}" style="display: inline" class="checkbox danger_indicator" for="sbasChkr_{{sbas_id}}_{{unique_id}}">
<span>{{sbas_id|sbas_labels(app)}}</span> <span>{{sbas_id|sbas_labels(app)}}</span>
<span class="infos_sbas_{{sbas_id}}"> <span class="infos_sbas_{{sbas_id}}">

View File

@@ -29,7 +29,7 @@ define([
var $this = this; var $this = this;
this.eventManager.on("panel:left:success", function(data, click) { this.eventManager.on("panel:left:success", function(data, click) {
$this.render.append(data); $this.render(data);
$this.activeTree(); $this.activeTree();
if (click) { if (click) {
$this.clickSelected(); $this.clickSelected();