diff --git a/app/controllers/admin/tables_controller.rb b/app/controllers/admin/tables_controller.rb index 8430658faf..ca678f5894 100644 --- a/app/controllers/admin/tables_controller.rb +++ b/app/controllers/admin/tables_controller.rb @@ -26,7 +26,7 @@ class Admin::TablesController < ApplicationController def show @table = Table.select(:id,:name,:privacy,:user_id,:tags).filter(:id => params[:id]).first - raise ActiveRecord::RecordNotFound if @table.user_id != current_user.id && @table.private? + #raise ActiveRecord::RecordNotFound if @table.user_id != current_user.id && @table.private? end end \ No newline at end of file diff --git a/app/controllers/api/json/tables_controller.rb b/app/controllers/api/json/tables_controller.rb index fb7507a36d..727a2db35d 100644 --- a/app/controllers/api/json/tables_controller.rb +++ b/app/controllers/api/json/tables_controller.rb @@ -219,7 +219,7 @@ class Api::Json::TablesController < ApplicationController def load_table @table = Table.select(:id,:user_id,:name,:privacy).filter(:id => params[:id]).first - raise ActiveRecord::RecordNotFound if @table.user_id != current_user.id && @table.private? + #raise ActiveRecord::RecordNotFound if @table.user_id != current_user.id && @table.private? end end \ No newline at end of file diff --git a/public/javascripts/admin/table.js b/public/javascripts/admin/table.js index ed5fad819b..a311d8f062 100644 --- a/public/javascripts/admin/table.js +++ b/public/javascripts/admin/table.js @@ -13,8 +13,14 @@ //SUBHEADER EVENTS AND FLOATING WINDOWS - // change table status + //Save operation loader + $('section.subheader').append( + '
Loading...
'+ + 'Now vizzualizing 50 of X,XXX
'+ ''); - //Save operation loader - $(table).parent().parent().children('section.subheader').append( - 'Loading...
'+ - 'Loading...
'+ + // 'You can add it manually or import a file
'+ '' ); - methods.resizeTable(); - }, diff --git a/public/stylesheets/admin/cDBtable.css b/public/stylesheets/admin/cDBtable.css index 2246589e11..0c718b8a37 100644 --- a/public/stylesheets/admin/cDBtable.css +++ b/public/stylesheets/admin/cDBtable.css @@ -57,11 +57,7 @@ div.table_position div.loading.loading_previous {margin:59px 0 0 0; border-botto div.table_position div.loading p {width:100%; text-align:center; font:bold 13px "Helvetica"; color:#666666;} div.table_position div.loading p.count {width:100%; padding:5px 0 0 0; text-align:center; font:normal 11px "Helvetica"; color:#B3B3B3;} div.table_position div.loading img {position:absolute; width:25; height:25px ; margin:0 0 0 -13px; top:12px; left:50%;} -/*performing operation*/ -div.performing_op {position:absolute; bottom:0; left:50%; margin:0 0 0 -50px; padding:8px 12px; background:#FFEAA4; border-bottom:1px solid #D0C090; z-index:100; -webkit-border-top-left-radius: 5px; -webkit-border-top-right-radius: 5px; - -moz-border-radius-topleft: 5px; -moz-border-radius-topright: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px;} -div.performing_op p {font:normal 13px Arial; color:#333333;} -div.performing_op p.loading {padding:0 0 0 20px; background:url('/images/admin/icons/watch.png') no-repeat 0 1px;} + diff --git a/public/stylesheets/admin/table.css b/public/stylesheets/admin/table.css index 17bbf5b4d3..df4cabac30 100644 --- a/public/stylesheets/admin/table.css +++ b/public/stylesheets/admin/table.css @@ -16,14 +16,14 @@ section.subheader div.mamufas {float:left; width:100%; background:url('/images/a section.subheader div.left {position:relative; float:left; width:600px; height:88px; padding:15px 0 0 0; margin:0 0 0 40px;} section.subheader h2 {float:left; width:auto; font:bold 21px Arial; color:white;} section.subheader p.status {float:left; width:auto;} -section.subheader p.status a {float:left; padding:2px 7px; margin:4px 0 0 10px; border-radius:8px; -webkit-border-radius:8px; -moz-border-radius:8px; font:bold 11px Arial; color:white; text-decoration:none;} +section.subheader p.status a {float:left; padding:2px 7px; margin:4px 0 0 10px; border-radius:8px; -webkit-border-radius:8px; -moz-border-radius:8px; font:bold 11px Arial; color:white; text-decoration:none; text-transform:uppercase;} section.subheader p.status a.public {background:#6FBE6F;} section.subheader p.status a.private {background:#FF3300;} section.subheader p.status a.save {background:#FFCC00;} section.subheader p.status a.selected {background:black; color:white;} section.subheader p.status a:hover {background:black;} section.subheader p.status a.save:hover {background:#FFCC00;} -section.subheader span.privacy_window {position:absolute; display:none; width:216px; height:108px; background:url('/images/admin/table/privacy_options_bkg.png') no-repeat center center;} +section.subheader span.privacy_window {position:absolute; display:none; top:18px; width:216px; height:108px; background:url('/images/admin/table/privacy_options_bkg.png') no-repeat center center;} section.subheader span.privacy_window ul {float:left; width:175px; margin:34px 0 0 20px;} section.subheader span.privacy_window ul li {width:161px; padding:5px 7px 6px; margin:0 0 2px; border-radius:3px; -webkit-border-radius:3px; -moz-border-radius:3px;} section.subheader span.privacy_window ul li.last {margin:0;} @@ -52,8 +52,6 @@ section.subheader div.right p.settings a.delete {padding:0 3px 0 0; color:#FF330 section.subheader div.right p.settings a.delete:hover {color:#FF4400;} section.subheader div.right p.settings a.settings {padding:0 20px 0 3px; color:white; background:url('/images/admin/icons/settings.png') no-repeat right 1px;} section.subheader div.right p.settings a.settings:hover {color:white;} - - section.subheader div.right span.advanced_options {position:absolute; display:none; right:-10px; top:9px; width:122px; z-index:100;} section.subheader div.right span.advanced_options a.advanced {position:relative; float:right; padding:7px 29px 7px 9px; font:normal 13px Arial; text-shadow:0 1px black; text-decoration:none; color:#949BAA; z-index:100; border:1px solid black; border-bottom:0; -webkit-border-top-left-radius: 5px; -webkit-border-top-right-radius: 5px; -moz-border-radius-topleft: 5px; -moz-border-radius-topright: 5px; @@ -64,13 +62,19 @@ section.subheader div.right span.advanced_options ul {float:left; width:100px; h section.subheader div.right span.advanced_options ul li {background:none;} section.subheader div.right span.advanced_options ul li a {background:none; font:normal 11px "Helvetica"; color:white; text-decoration:none;} section.subheader div.right span.advanced_options ul li a:hover {text-decoration:underline;} - - section.subheader div.right span.paginate {position:absolute; right:0; bottom:5px; width:100%;} section.subheader div.right span.paginate a {float:right; width:27px; height:23px; text-indent:-9999px;} section.subheader div.right span.paginate a.previous {margin:0 3px 0 0; background:url('/images/admin/icons/left_button.png') no-repeat 0 0;} section.subheader div.right span.paginate a.next {background:url('/images/admin/icons/right_button.png') no-repeat 0 0;} section.subheader div.right span.paginate a:hover {background-position:0 -23px;} +/*performing operation*/ +section.subheader div.performing_op {position:absolute; display:none; bottom:0; left:50%; margin:0 0 0 -50px;} +section.subheader div.performing_op p {font:normal 13px Arial; color:#333333; padding:8px 12px; border-bottom:1px solid #D0C090; z-index:100; -webkit-border-top-left-radius: 5px; -webkit-border-top-right-radius: 5px; + -moz-border-radius-topleft: 5px; -moz-border-radius-topright: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; text-align:center;} +section.subheader div.performing_op p.loading {padding:8px 12px 8px 32px; background:url('/images/admin/icons/watch.png') no-repeat 12px 9px #FFEAA4;} +section.subheader div.performing_op p.success {padding:8px 12px; background:#99CC66; border-bottom-color:#A5BB93; color:#111111;} +section.subheader div.performing_op p.error {padding:8px 12px; background:#FF5F5F; border-bottom-color:#D05153; color:white;} + /*MAP*/