[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: card.js
"use strict"; $(document).ready(function () { /** -------------------------------------------------------------------------------------------------- * hover on cover image and show remove button * -------------------------------------------------------------------------------------------------*/ $(document).on({ mouseenter: function () { $('.cover-image-remove-button').show(); }, mouseleave: function () { $('.cover-image-remove-button').hide(); } }, ".card-cover-image-wrapper"); /** -------------------------------------------------------------------------------------------------- * add cover image button * -------------------------------------------------------------------------------------------------*/ $(document).on('click', '.js-add-cover-image', function () { var image_url = $(this).attr('data-image-url'); var this_remove_button = $(this).attr('data-remove-cover-button'); var this_add_button = $(this).attr('data-add-cover-button'); var remove_cover_url = $(this).attr('data-image-url'); var kanban_card_id = $(this).attr('data-id'); //set background image $('#card-cover-image-container').css('background-image', 'url("' + image_url + '")'); //set the cover on the kanban also $('#kanban-card-cover-image-' + kanban_card_id).css('background-image', 'url("' + image_url + '")'); $('#kanban-card-cover-image-' + kanban_card_id).show(); //update remove image button url $(".remove-cover-image-button").attr('data-url', remove_cover_url); //elements $("#card-cover-image-wrapper").show(); //buttons $(".cover_image_buttons_remove").hide(); $(".cover_image_buttons_add").show(); $("#" + this_remove_button).show(); $("#" + this_add_button).hide(); //reposition modal close button $("#card-modal-close").addClass('card-has-cover-image'); //request to backend nxAjaxUxRequest($(this)); }); /** -------------------------------------------------------------------------------------------------- * remove cover image button * -------------------------------------------------------------------------------------------------*/ $(document).on('click', '.js-remove-cover-image', function (e) { e.stopPropagation(); var kanban_card_id = $(this).attr('data-id'); //elements $("#card-cover-image-wrapper").hide(); //reposition modal close button $("#card-modal-close").removeClass('card-has-cover-image'); //hide on kanban card $('#kanban-card-cover-image-' + kanban_card_id).hide(); //buttons $(".cover_image_buttons_remove").hide(); $(".cover_image_buttons_add").show(); //request to backend nxAjaxUxRequest($(this)); }); }); /**-------------------------------------------------------------------------------------- * [CARD COVERS] * @description: card cover image has been removed in backend * -------------------------------------------------------------------------------------*/ function NXCardRemoveCover() { //elements $("#card-cover-image-wrapper").hide(); //reposition modal close button $("#card-modal-close").removeClass('card-has-cover-image'); //buttons $(".cover_image_buttons_remove").hide(); $(".cover_image_buttons_add").show(); } /**-------------------------------------------------------------------------------------- * [RESET TAGS] * @description: reset tags when file attachment is completed * -------------------------------------------------------------------------------------*/ function NXResetAttachmentsTags() { var $dropdown = $("#tags"); $dropdown.val(''); $dropdown.trigger("change"); }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.82 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002