Commit fb9b6ff2 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix to element ids for pages with more than one filebrowser element


Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent be5df33f
......@@ -294,7 +294,7 @@ function FileBrowser(idprefix, folderid, config, globalconfig) {
this.browse_init = function () {
if (self.config.edit || self.config.editmeta) {
forEach(getElementsByTagAndClassName('input', null, 'filelist'), function (elem) {
forEach(getElementsByTagAndClassName('input', null, self.id + '_filelist'), function (elem) {
var name = getNodeAttribute(elem, 'name').match(new RegExp('^' + self.id + "_([a-z]+)\\[(\\d+)\\]$"));
if (name && name[1]) {
if (name[1] == 'edit') {
......@@ -350,10 +350,10 @@ function FileBrowser(idprefix, folderid, config, globalconfig) {
forEach(Draggables.drags, function (drag) { drag.destroy(); });
forEach(Droppables.drops, function (drop) { drop.destroy(); });
forEach(getElementsByTagAndClassName('div', 'icon-drag', 'filelist'), function (elem) {
forEach(getElementsByTagAndClassName('div', 'icon-drag', self.id + '_filelist'), function (elem) {
self.make_icon_draggable(elem);
});
forEach(getElementsByTagAndClassName('tr', 'folder', 'filelist'), self.make_row_droppable);
forEach(getElementsByTagAndClassName('tr', 'folder', self.id + '_filelist'), self.make_row_droppable);
}
}
forEach(getElementsByTagAndClassName('a', 'changeowner', self.id + '_upload_browse'), function (elem) {
......@@ -501,7 +501,7 @@ function FileBrowser(idprefix, folderid, config, globalconfig) {
}
this.connect_select_buttons = function () {
forEach(getElementsByTagAndClassName('input', 'select', 'filelist'), function (elem) {
forEach(getElementsByTagAndClassName('input', 'select', self.id + '_filelist'), function (elem) {
var id = elem.name.replace(/.*_select\[(\d+)\]$/, '$1');
if (self.selecteddata[id]) {
addElementClass(elem, 'hidden');
......
{if !$filelist}
<p>{str tag=nofilesfound section=artefact.file}</p>
{else}
<table id="filelist" class="tablerenderer filelist">
<table id="{$prefix}_filelist" class="tablerenderer filelist">
<thead>
<tr>
<th></th>
......
......@@ -68,7 +68,7 @@ h6 {
}
/* table with th border-bottom */
#searchresults thead th,
#filelist,
.filelist,
.tag-results #results {
border-bottom: 1px solid #14436F;
}
......
......@@ -59,7 +59,7 @@ h6 {
}
/* table with th border-bottom */
#searchresults thead th,
#filelist,
.filelist,
.tag-results #results {
border-bottom: 1px solid #ccc;
}
......
......@@ -65,7 +65,7 @@ h6 {
}
/* table with th border-bottom */
#searchresults thead th,
#filelist,
.filelist,
.tag-results #results {
border-bottom: 1px dotted #BEE3F1;
}
......
......@@ -191,7 +191,7 @@ td.narrow {
}
/* table with th border-bottom */
#searchresults thead th,
#filelist,
.filelist,
.tag-results #results {
border-bottom: 1px solid #ccc;
}
......
......@@ -67,7 +67,7 @@ h6 {
}
/* table with th border-bottom */
#searchresults thead th,
#filelist,
.filelist,
.tag-results #results {
border-bottom: 1px dotted #8E1901;
}
......
......@@ -69,7 +69,7 @@ h6 {
}
/* table with th border-bottom */
#searchresults thead th,
#filelist,
.filelist,
.tag-results #results {
border-bottom: 1px dotted #360435;
}
......
......@@ -574,10 +574,10 @@ ul.artefactchooser-subtabs li.current a:active {
.fileupload td {
padding: .25em .5em;
}
.fileupload #filelist td {
.fileupload .filelist td {
padding: .25em .5em;
}
.fileupload #filelist td input.small {
.fileupload .filelist td input.small {
font-size: .9167em;
}
.upload_browse #artefactchooser-body {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment