Commit 61539ddc authored by Nick Poulden's avatar Nick Poulden
Browse files

Class doc print link

parent c876b05c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ Ext.define('Docs.Application', {

        // setInterval(function(){
        //     Ext.DomQuery.select('link')[4].href = "resources/css/viewport.css?" + Math.ceil(Math.random() * 100000000)
        // }, 1000)
        // }, 1000);
    }

});
+2 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@ Ext.define('Docs.view.cls.Header', {
    // will not be correct if not set explicitly
    height: 55,
    alias: 'widget.classheader',
    cls: 'classheader',

    initComponent: function() {
        this.tpl = Ext.create('Ext.XTemplate',
@@ -20,6 +21,7 @@ Ext.define('Docs.view.cls.Header', {
                    '<span>xtype: {[values.xtypes.join(", ")]}</span>',
                '</tpl>',
            '</h1>',
            '<a class="print" href="?_escaped_fragment_=/api/{name}" target="_blank">Print</a>',
            {
                getClass: function(cls) {
                    if (cls.component) {
+829 B
Loading image diff...
+10 −0
Original line number Diff line number Diff line
@@ -284,6 +284,16 @@ a {
      color: #e7ba27;
      letter-spacing: 0px; } }

  .classheader .print {
    background: url(../images/print.png) no-repeat;
    position: absolute;
    right: 0;
    top: 5px;
    display: block;
    text-indent: -9999px;
    width: 32px;
    height: 32px; }

  h1.class {
    a {
      background: url(../images/class-m.png) no-repeat 0 -5px;