Commit 74839fcf authored by Aaron Harder's avatar Aaron Harder

Raw view: hide scrollbars and make resource types clickable

parent 48840b94
......@@ -5,7 +5,6 @@ var TOOLS_ROUTES_DIR = 'tools';
module.exports = function($, callback){
var req = $.express.req;
var appsRoot =_path.join(global.bl.appRoot, "apps");
var staticTreeContent = {};
......
......@@ -9,6 +9,17 @@
padding-right:1em;
padding-left:4px;
cursor:pointer;
}
::-webkit-scrollbar{
width: 0px;
height: 0px;
background: transparent;
}
.rtype:hover{
background-color: #ffa;
}
.component{
......
......@@ -2,6 +2,7 @@
$(function(){
var lastHover;
var reservedRtypes=["blacklight/meta", "foundation/components/parsys"];
/////////////////////////////////////////
$(".raw-nav").each(function(){
......@@ -21,6 +22,18 @@ $(function(){
});
/////////////////////////////////////////
$(".rtype").click(
function(){
var $link=$(this);
var rtype=$link.text().trim();
if(reservedRtypes.indexOf(rtype)>-1){return false;}
var url=window.BL.appsMount + "/blacklight/develop/cm#!" + window.BL.appsMount + "blacklight/develop/components/" + rtype + ".edit"
var win = window.open(url, '_blank');
win.focus();
}
);
/////////////////////////////////////////
$(".key").hover(
function hoverIn(e){
......
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