sanitize manager
This commit is contained in:
parent
b3b3494bba
commit
efc0e595e6
BIN
app/assets/images/admin/pbar-ani.gif
Executable file
BIN
app/assets/images/admin/pbar-ani.gif
Executable file
Binary file not shown.
After Width: | Height: | Size: 7.8 KiB |
@ -2,7 +2,7 @@ function data_files_load()
|
||||
{
|
||||
|
||||
update_data_multiple_selection_text();
|
||||
set_data_files_big_container_size();
|
||||
|
||||
|
||||
|
||||
|
||||
@ -101,18 +101,7 @@ function close_data_file_container(data_file_id)
|
||||
|
||||
}
|
||||
|
||||
function set_data_files_big_container_size(){
|
||||
|
||||
if($("#data_files_big_container").parent().attr("id") == "manager_box")
|
||||
{
|
||||
$("#data_files_big_container").css("height",( $("#manager_box").height())+"px");
|
||||
$("#data_files_big_container").css("top","0px");
|
||||
}
|
||||
else
|
||||
{
|
||||
$("#data_files_big_container").css("height",( $(window).height() - 36)+"px");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function delete_multiple_files(){
|
||||
@ -185,9 +174,7 @@ create :
|
||||
$(document).ready(function ($) {
|
||||
|
||||
|
||||
$(window).bind("resize", function() {
|
||||
set_data_files_big_container_size();
|
||||
})
|
||||
|
||||
|
||||
|
||||
$("#left_buttons").live("click", function() {
|
||||
@ -254,7 +241,7 @@ $(document).ready(function ($) {
|
||||
|
||||
});
|
||||
|
||||
set_data_files_big_container_size();
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -4,7 +4,7 @@ function image_files_load()
|
||||
{
|
||||
|
||||
update_multiple_selection_text();
|
||||
set_image_files_big_container_size();
|
||||
|
||||
set_image_files_img_size();
|
||||
|
||||
if(!slider_enabled){
|
||||
@ -116,19 +116,6 @@ function close_image_file_container(image_file_id)
|
||||
|
||||
}
|
||||
|
||||
function set_image_files_big_container_size(){
|
||||
|
||||
if($("#image_files_big_container").parent().attr("id") == "manager_box")
|
||||
{
|
||||
$("#image_files_big_container").css("height",( $("#manager_box").height())+"px");
|
||||
$("#image_files_big_container").css("top","0px");
|
||||
}
|
||||
else
|
||||
{
|
||||
$("#image_files_big_container").css("height",( $(window).height() - 36)+"px");
|
||||
//alert($("#breadcrumb").outerHeight());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function delete_multiple_images(){
|
||||
@ -201,10 +188,6 @@ create :
|
||||
$(document).ready(function ($) {
|
||||
|
||||
|
||||
$(window).bind("resize", function() {
|
||||
set_image_files_big_container_size();
|
||||
})
|
||||
|
||||
|
||||
$("#left_buttons").live("click", function() {
|
||||
multiple_selection_ids();
|
||||
@ -269,7 +252,7 @@ $(document).ready(function ($) {
|
||||
|
||||
});
|
||||
|
||||
set_image_files_big_container_size();
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -150,9 +150,9 @@ function manager_send_cible(cible_id, cible_type, cible_name){
|
||||
function manager_send_data_file(data_file_id){
|
||||
|
||||
|
||||
var image_file_id_file_div = $('#data_file_'+data_file_id);
|
||||
var data_file_div = $('#data_file_'+data_file_id);
|
||||
|
||||
manager_send_response({data_file_id : image_file_div.data("id"), name : image_file_div.data("name")});
|
||||
manager_send_response({data_file_id : data_file_div.data("id"), name : data_file_div.data("name")});
|
||||
}
|
||||
|
||||
|
||||
|
@ -34,7 +34,7 @@ function initialize_uploads()
|
||||
return $('<tr><td>' + files[index].name + '<\/td>' +
|
||||
'<td class="file_upload_progress"><div><\/div><\/td>' +
|
||||
'<td class="file_upload_cancel">' +
|
||||
'<img alt="Pen_alt_stroke_16x16" src="/assets/iconic/gray_light/denied_16x16.png" />' +
|
||||
'<img alt="Pen_alt_stroke_16x16" src="/assets/shared/iconic/gray_light/denied_16x16.png" />' +
|
||||
|
||||
'<\/td><\/tr>');
|
||||
}
|
||||
@ -73,7 +73,7 @@ function initialize_uploads()
|
||||
return $('<tr><td>' + files[index].name + '<\/td>' +
|
||||
'<td class="file_upload_progress"><div><\/div><\/td>' +
|
||||
'<td class="file_upload_cancel">' +
|
||||
'<img alt="Pen_alt_stroke_16x16" src="/assets/iconic/gray_light/denied_16x16.png" />' +
|
||||
'<img alt="Pen_alt_stroke_16x16" src="/assets/shared/iconic/gray_light/denied_16x16.png" />' +
|
||||
|
||||
'<\/td><\/tr>');
|
||||
}
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
|
||||
@import "shared/formtastic";
|
||||
@import "shared/jquery-ui-1.8.11.custom.css";
|
||||
@import "shared/jquery-ui-1.8.11.custom";
|
||||
@import "shared/ui.timepickr";
|
||||
|
||||
@import "admin/portlets";
|
||||
|
@ -334,10 +334,20 @@ float:right;
|
||||
|
||||
background:red;
|
||||
position:absolute;
|
||||
top:36px;
|
||||
top:34px;
|
||||
left:0px;
|
||||
right:0px;
|
||||
bottom:0px;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
#manager_box #data_files_big_container{
|
||||
top:0px;
|
||||
}
|
||||
|
||||
|
||||
#data_files_big_container #sidebar{
|
||||
width:209px;
|
||||
border-right:1px solid #adb5ba;
|
||||
@ -413,6 +423,14 @@ background:RGB(217,233,245);
|
||||
right:0px;
|
||||
overflow:auto;
|
||||
padding-bottom:34px;
|
||||
|
||||
table{
|
||||
margin:0px;
|
||||
|
||||
td{
|
||||
border:0px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -741,9 +759,12 @@ background:RGB(217,233,245);
|
||||
transition: 0.4s ease-in-out;
|
||||
|
||||
}
|
||||
#data_files_big_container #right_bar #data_file_queue #files{
|
||||
margin:0px;
|
||||
|
||||
}
|
||||
#data_files_big_container #right_bar #data_file_queue #files td{
|
||||
|
||||
color:#eff2f2;
|
||||
padding:5px;
|
||||
}
|
||||
|
||||
@ -772,7 +793,7 @@ background:RGB(217,233,245);
|
||||
#data_files_big_container #right_bar #multiple_selection #multiple_menu{
|
||||
position:absolute;
|
||||
left:0px;
|
||||
bottom:33px;
|
||||
bottom:31px;
|
||||
height:0px;
|
||||
width:216px;
|
||||
background:rgba(0,0,0,0.9);
|
||||
@ -833,10 +854,21 @@ height:auto;
|
||||
|
||||
background:red;
|
||||
position:absolute;
|
||||
top:36px;
|
||||
top:34px;
|
||||
left:0px;
|
||||
right:0px;
|
||||
bottom:0px;
|
||||
}
|
||||
|
||||
|
||||
#manager_box #image_files_big_container{
|
||||
top:0px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#image_files_big_container #sidebar{
|
||||
width:209px;
|
||||
border-right:1px solid #adb5ba;
|
||||
@ -1162,9 +1194,6 @@ background:RGB(217,233,245);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#image_files_big_container #right_bar{
|
||||
|
||||
background:rgba(0,0,0,0.8);
|
||||
@ -1174,21 +1203,17 @@ background:RGB(217,233,245);
|
||||
|
||||
left:210px;
|
||||
right:0px;
|
||||
}
|
||||
|
||||
|
||||
#image_file_form{
|
||||
|
||||
|
||||
|
||||
#image_files_big_container #right_bar #image_file_form{
|
||||
position:absolute;
|
||||
top:0px;
|
||||
left:240px;
|
||||
|
||||
}
|
||||
|
||||
|
||||
#image_files_big_container #right_bar #image_file_form .file_upload {
|
||||
.file_upload {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
|
||||
@ -1223,22 +1248,22 @@ background:RGB(217,233,245);
|
||||
|
||||
}
|
||||
|
||||
#image_files_big_container #right_bar #image_file_form .file_upload:hover {
|
||||
|
||||
.file_upload:hover {
|
||||
background-color:rgba(131,131,131,0.3);
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
.file_upload_highlight {
|
||||
background-color: rgba(106,191,6,0.2);
|
||||
}
|
||||
|
||||
|
||||
#image_files_big_container #right_bar #image_file_queue{
|
||||
|
||||
}
|
||||
|
||||
|
||||
#image_file_queue{
|
||||
position:absolute;
|
||||
left:240px;
|
||||
bottom:33px;
|
||||
@ -1254,15 +1279,21 @@ background:RGB(217,233,245);
|
||||
-o-transition: 0.4s ease-in-out;
|
||||
transition: 0.4s ease-in-out;
|
||||
|
||||
}
|
||||
|
||||
#image_files_big_container #right_bar #image_file_queue #files td{
|
||||
|
||||
#files {
|
||||
margin:0px;
|
||||
td{
|
||||
color:#eff2f2;
|
||||
padding:5px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#image_files_big_container #right_bar #grid_slider{
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
#grid_slider{
|
||||
position:absolute;
|
||||
right:20px;
|
||||
top:15px;
|
||||
@ -1273,7 +1304,9 @@ background:RGB(217,233,245);
|
||||
border-radius:2px;
|
||||
}
|
||||
|
||||
#image_files_big_container #right_bar #grid_slider .ui-slider-handle{
|
||||
#grid_slider{
|
||||
|
||||
.ui-slider-handle{
|
||||
|
||||
border-radius:6px;
|
||||
height:10px;
|
||||
@ -1283,10 +1316,24 @@ background:RGB(217,233,245);
|
||||
|
||||
}
|
||||
|
||||
#image_files_big_container #right_bar #multiple_selection #multiple_menu{
|
||||
}
|
||||
|
||||
|
||||
#multiple_selection {
|
||||
|
||||
&:hover{
|
||||
#multiple_menu{
|
||||
height:auto;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
#multiple_menu{
|
||||
position:absolute;
|
||||
left:0px;
|
||||
bottom:33px;
|
||||
bottom:31px;
|
||||
height:0px;
|
||||
width:216px;
|
||||
background:rgba(0,0,0,0.9);
|
||||
@ -1298,9 +1345,9 @@ background:RGB(217,233,245);
|
||||
-o-transition: 0.4s ease-in-out;
|
||||
transition: 0.4s ease-in-out;
|
||||
|
||||
}
|
||||
|
||||
#image_files_big_container #right_bar #multiple_selection #multiple_menu a{
|
||||
|
||||
a{
|
||||
|
||||
display:block;
|
||||
padding:9px;
|
||||
@ -1323,9 +1370,7 @@ background:RGB(217,233,245);
|
||||
transition-property: background-color;
|
||||
transition-duration: 0.4s;
|
||||
|
||||
}
|
||||
|
||||
#image_files_big_container #right_bar #multiple_selection #multiple_menu a:hover{
|
||||
&:hover{
|
||||
|
||||
background-color:rgba(131,131,131,0.3);
|
||||
|
||||
@ -1333,12 +1378,24 @@ background:RGB(217,233,245);
|
||||
|
||||
|
||||
|
||||
#image_files_big_container #right_bar #multiple_selection:hover #multiple_menu{
|
||||
height:auto;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#menu_items_breadcrumbs{
|
||||
margin-top:10px;
|
||||
|
||||
@ -1346,21 +1403,23 @@ height:auto;
|
||||
background : #F0F0F0;
|
||||
|
||||
border-radius:10px;
|
||||
}
|
||||
#menu_items_breadcrumbs *{
|
||||
|
||||
|
||||
*{
|
||||
color:#505B66;
|
||||
}
|
||||
#menu_items_breadcrumbs .receptable{
|
||||
|
||||
.receptable{
|
||||
float:left;
|
||||
padding:5px 10px 5px 10px;
|
||||
|
||||
|
||||
width:auto;
|
||||
|
||||
/*background : url("/images/quartz_admin/icons_receptable.png") no-repeat right center;*/
|
||||
|
||||
}
|
||||
|
||||
#menu_items_breadcrumbs .separate{
|
||||
.separate{
|
||||
float:left;
|
||||
padding:5px;
|
||||
|
||||
@ -1370,7 +1429,7 @@ height:auto;
|
||||
/*background : url("/images/quartz_admin/icons_receptable.png") no-repeat right center;*/
|
||||
}
|
||||
|
||||
#menu_items_breadcrumbs .actual{
|
||||
.actual{
|
||||
float:left;
|
||||
padding:5px;
|
||||
padding-right:20px;
|
||||
@ -1379,6 +1438,9 @@ height:auto;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
.hoverhighlight a{
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
||||
}
|
||||
|
||||
.file_upload_progress .ui-progressbar-value {
|
||||
background: url(pbar-ani.gif);
|
||||
background: url('/assets/admin/pbar-ani.gif');
|
||||
}
|
||||
|
||||
.file_upload_progress div {
|
||||
|
@ -23,11 +23,11 @@ class DataFile < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def abstract_file_name
|
||||
self.name+File.extname(self.file.to_s)
|
||||
self.name+File.extname(self.attributes['file'])
|
||||
end
|
||||
|
||||
def abstract_file_name_slug
|
||||
self.name.to_slug+File.extname(self.file.to_s)
|
||||
self.name.to_slug+File.extname(self.attributes['file'])
|
||||
end
|
||||
|
||||
end
|
||||
|
@ -51,8 +51,3 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
:javascript
|
||||
set_data_files_big_container_size();
|
||||
|
||||
|
@ -57,6 +57,4 @@
|
||||
|
||||
|
||||
|
||||
:javascript
|
||||
set_image_files_big_container_size();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user