From b722708fe28a1e268a615c5d0ed81e998579b506 Mon Sep 17 00:00:00 2001 From: Sashi20 Date: Wed, 27 Jan 2021 17:45:17 +0530 Subject: Rename popup class name to avoiod conflict with xcos popup --- css/pop.css | 26 +++++++++++++------------- js/tbc_external_review.js | 16 ++++++++-------- tbc_external_review.module | 24 ++++++++++++------------ 3 files changed, 33 insertions(+), 33 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..7feec08 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 .= " "; - $page_content .= "