MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / closeNetkbModal

Function closeNetkbModal

web/scripts/ragnar_modern.js:14278–14284  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14276 const fname = escapeHtml(file.filename);
14277 const size = escapeHtml(file.size || '');
14278 const mod = escapeHtml(file.modified || '');
14279 const vpath = file.virtual_path ? encodeURIComponent(file.virtual_path) : '';
14280 const clickable = !!vpath;
14281
14282 html += `
14283 <div class="flex items-center justify-between bg-gray-800 rounded-lg px-4 py-3 ${clickable ? 'hover:bg-gray-700 cursor-pointer' : ''} transition-colors"
14284 ${clickable ? `onclick="openLootFile('${escapeAttr(vpath)}')"` : ''}>
14285 <div class="flex items-center gap-3 min-w-0">
14286 <svg class="w-4 h-4 text-gray-500 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
14287 <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path>

Callers

nothing calls this directly

Calls 1

addMethod · 0.80

Tested by

no test coverage detected