芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/dzilamdebravo1821.gob.mx/media/plg_system_debug/widgets/languageFiles/widget.js
(function ($) { var csscls = PhpDebugBar.utils.makecsscls('phpdebugbar-widgets-') var languageFilesWidget = PhpDebugBar.Widgets.languageFilesWidget = PhpDebugBar.Widget.extend({ tagName: 'table', className: csscls('languageFiles'), render: function () { this.bindAttr('data', function (data) { this.$el.empty() var head = $('
') .append($('
').text('Extension')) .append($('
').text('File')) this.$el.append(head) for (var extension in data.loaded) { var ul = $('
') for (var file in data.loaded[extension]) { var css = data.loaded[extension][file] ? 'alert-success' : 'alert-warning' var status = data.loaded[extension][file] ? '+' : '-' var relPath = status + ' ' + file.replace(data.jroot, '') var li = $('
') .addClass(css) if (data.xdebugLink) { var link = $('
') .text(relPath) .attr( 'href', data.xdebugLink .replace('%f', file) .replace('%l', '1') ) li.append(link) } else { li.text(relPath) } li.appendTo(ul) } var tr = $('
') .append($('
').text(extension)) .append($('
').append(ul)) this.$el.append(tr) } }) } }) })(PhpDebugBar.$)