Commit ee42f78b authored by lindonb's avatar lindonb

[FIX] admin toolbars: custom tools icon wasn't working with legacy icons;...

 [FIX] admin toolbars: custom tools icon wasn't working with legacy icons; improve spacing; fix notice; other touch-ups
parent c1303275
......@@ -186,6 +186,7 @@ $(document).ready(function () {
$('#toolbar_add_custom').click(function () {
showToolEditForm();
return false;
});
}); // end doc ready
......
......@@ -108,7 +108,7 @@
{/foreach}
</div>
<div class="lists">
<label for="full-list-w">{tr}Formatting Tools:{/tr}</label>
<label for="full-list-w">{tr}Formatting Tools{/tr}</label>
<ul id="full-list-w" class="full">
{foreach from=$display_w item=tool}
<li class="{$qtelement[$tool].class}">{$qtelement[$tool].html}</li>
......@@ -116,7 +116,7 @@
</ul>
</div>
<div class="lists">
<label for="full-list-p">{tr}Plugin Tools:{/tr}</label><br/>
<label for="full-list-p">{tr}Plugin Tools{/tr}</label>
<ul id="full-list-p" class="full">
{foreach from=$display_p item=tool}
<li class="{$qtelement[$tool].class}">{$qtelement[$tool].html}</li>
......@@ -168,7 +168,7 @@
</form>
{autocomplete element='#tool_icon' type='icon'}
</div>
<label for="full-list-c">{tr}Custom Tools:{/tr}</label>{icon name="add" title="{tr}Add a new custom tool{/tr}" id="toolbar_add_custom"}<br/>
<label for="full-list-c">{tr}Custom Tools{/tr}</label><a href="#" id="toolbar_add_custom">{icon name="add" ititle=":{tr}Add a new custom tool{/tr}" iclass="tips"}
<ul id="full-list-c" class="full">
{foreach from=$display_c item=tool}
<li class="{$qtelement[$tool].class}">{$qtelement[$tool].html}</li>
......
......@@ -115,7 +115,7 @@ a.admbox.off img {
.toolbars-admin .full {
border: solid thin gray;
border: solid thin lightgrey;
float: left;
height: auto;
max-height: 400px;
......@@ -127,7 +127,7 @@ a.admbox.off img {
.toolbars-admin .lists {
padding: 1em 2em 1em 0;
float: left;
width: 28%;
width: 31%;
min-height: 10em;
}
......@@ -201,6 +201,11 @@ a.admbox.off img {
display: none;
}
.toolbars-admin .row li.toolbar > span.icon,
.toolbars-admin .full li.toolbar > span.icon {
margin-right: 2px;
}
.toolbars-admin .row li.qt-plugin {
width: auto;
margin: 0 6px 0 0;
......
......@@ -49,7 +49,8 @@ $sections = array_merge($sections, $sections2);
if ( isset($_REQUEST['section']) && in_array($_REQUEST['section'], array_keys($sections)) ) {
$section = $_REQUEST['section'];
} else {
$section = reset(array_keys($sections));
$keys = array_keys($sections);
$section = reset($keys);
}
if ( isset($_REQUEST['comments']) && $_REQUEST['comments'] == 'on') {
$comments = true;
......
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