diff options
-rwxr-xr-x | css/pop.css | 26 | ||||
-rwxr-xr-x | js/tbc_external_review.js | 16 | ||||
-rwxr-xr-x | tbc_external_review.module | 26 |
3 files changed, 34 insertions, 34 deletions
diff --git a/css/pop.css b/css/pop.css index 6fa93c2..e228cd5 100755 --- a/css/pop.css +++ b/css/pop.css @@ -1,13 +1,13 @@ h1{ margin-top: 50px; } -#popup_window{ +#scilab-popup_window{ padding: 10px; cursor: pointer; color: #0072b9; } -.popup-overlay { +.scilab-popup-overlay { width: 100%; height: 100%; position: fixed; @@ -22,18 +22,18 @@ color: #0072b9; -o-transition: opacity .2s ease-out; transition: opacity .2s ease-out; } -.overlay .popup-overlay { +.overlay .scilab-popup-overlay { opacity: 1; left: 0 } -.popup { +.scilab-popup { position: absolute; top: 5%; left: 47%; margin-right: 20%; z-index: -9999; } -.popup .popup-body { +.scilab-popup .scilab-popup-body { background: #ffffff; background: -moz-linear-gradient(top, #ffffff 0%, #f7f7f7 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ffffff), color-stop(100%, #f7f7f7)); @@ -60,14 +60,14 @@ color: #0072b9; text-align: center; border: 1px solid #e9e9e9; } -.popup.visible, .popup.transitioning { +.scilab-popup.visible, .scilab-popup.transitioning { z-index: 9999; } -.popup.visible .popup-body { +.scilab-popup.visible .scilab-popup-body { opacity: 1; -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; } -.popup .popup-exit { +.scilab-popup .scilab-popup-exit { cursor: pointer; display: block; width: 24px; @@ -78,24 +78,24 @@ color: #0072b9; background: url("images/quit.png") no-repeat; } -.popup .popup-content { +.scilab-popup .scilab-popup-content { overflow-y: auto; } -.popup-content .popup-title { +.scilab-popup-content .scilab-popup-title { font-size: 24px; border-bottom: 1px solid #e9e9e9; padding-bottom: 10px; } -.popup-content p { +.scilab-popup-content p { font-size: 13px; text-align: justify; } -.popup-content td { +.scilab-popup-content td { text-align: left; } - .popup-content textarea + .scilab-popup-content textarea { width:98%; height:150px; diff --git a/js/tbc_external_review.js b/js/tbc_external_review.js index dfbebf7..1343ab1 100755 --- a/js/tbc_external_review.js +++ b/js/tbc_external_review.js @@ -226,11 +226,11 @@ $('#btnDialog').click(function(){ }); - //popup for review // + //scilab-popup for review // $(window).load(function(){ jQuery(document).ready(function ($) { - $(this).on('click', '#popup_window', function (e) { + $(this).on('click', '#scilab-popup_window', function (e) { var comment_id = $(this).attr("data-comment"); @@ -241,13 +241,13 @@ $('#btnDialog').click(function(){ type: "GET", dataType: "html", success: function(data) { - $("#popup-content").html(data); + $("#scilab-popup-content").html(data); }, }); e.preventDefault(); $('html').addClass('overlay'); - $('#example-popup').addClass('visible'); + $('#example-scilab-popup').addClass('visible'); }); @@ -260,21 +260,21 @@ $('#btnDialog').click(function(){ } }); - $('.popup-exit').click(function () { + $('.scilab-popup-exit').click(function () { clearPopup(); }); - $('.popup-overlay').click(function () { + $('.scilab-popup-overlay').click(function () { clearPopup(); }); function clearPopup() { - $('.popup.visible').addClass('transitioning').removeClass('visible'); + $('.scilab-popup.visible').addClass('transitioning').removeClass('visible'); $('html').removeClass('overlay'); setTimeout(function () { - $('.popup').removeClass('transitioning'); + $('.scilab-popup').removeClass('transitioning'); }, 200); } diff --git a/tbc_external_review.module b/tbc_external_review.module index fdb0b7f..74fba40 100755 --- a/tbc_external_review.module +++ b/tbc_external_review.module @@ -819,7 +819,7 @@ //l("View", "", $options), l("View", "", array( "fragment" => " ", "external" => TRUE,"attributes" => array( - "id" => "popup_window", + "id" => "scilab-popup_window", "data-comment" => "{$row->id}", ))), ); @@ -830,14 +830,14 @@ //$page_content .= "<div id='lightbox-form' style='display:none'>"; //$page_content .= "<div id='lightbox-inner'></div></div> "; - $page_content .= "<div id='example-popup' class='popup'> - <div class='popup-body'> - <span class='popup-exit'></span> - <div id = 'popup-content' class='popup-content'> + $page_content .= "<div id='example-scilab-popup' class='scilab-popup'> + <div class='scilab-popup-body'> + <span class='scilab-popup-exit'></span> + <div id = 'scilab-popup-content' class='scilab-popup-content'> </div> </div> </div>"; - $page_content .= "<div class='popup-overlay'></div>"; + $page_content .= "<div class='scilab-popup-overlay'></div>"; } else { @@ -1931,7 +1931,7 @@ //l("View", "", $view_options), l("View", "", array( "fragment" => " ", "external" => TRUE,"attributes" => array( - "id" => "popup_window", + "id" => "scilab-popup_window", "data-comment" => "{$row->id}", ))), @@ -1963,14 +1963,14 @@ } //$page_content .= theme("table", $headers, $rows); $page_content .= theme('table', array('header' => $headers, 'rows' => $rows )); - $page_content .= "<div id='example-popup' class='popup'> - <div class='popup-body'> - <span class='popup-exit'></span> - <div id = 'popup-content' class='popup-content'> + $page_content .= "<div id='example-scilab-popup' class='scilab-popup'> + <div class='scilab-popup-body'> + <span class='scilab-popup-exit'></span> + <div id = 'scilab-popup-content' class='scilab-popup-content'> </div> </div> </div>"; - $page_content .= "<div class='popup-overlay'></div>"; + $page_content .= "<div class='scilab-popup-overlay'></div>"; } else { /* displaying the list of books */ $query = " @@ -2233,7 +2233,7 @@ INSERT INTO {external_review_details} (uid, preference_id, review, status, completed, published, sent) VALUES - (:uid, {:preference_id},{:review}, :status, :completed, :published, :sent) + (:uid, :preference_id, :review, :status, :completed, :published, :sent) "; $args = array(':uid' => 0, ':preference_id' => $preference_id, |