Changeset 90d3d0


Ignore:
Timestamp:
Oct 16, 2009, 11:46:50 PM (12 years ago)
Author:
rene <rene@…>
Branches:
multiEdit, ng_0.6, ng_0.6_help, ng_0.8, ng_0.9
Children:
ab880d
Parents:
ef65ae
Message:

test of html help

Location:
chrome
Files:
4 added
4 edited

Legend:

Unmodified
Added
Removed
  • chrome/content/v_identity/vI_htmlTextBox.xml

    ref65ae r90d3d0  
    3232    <constructor>
    3333        <![CDATA[       
    34 <!--        vI_notificationBar.dump('******* vI_htmlTextBox.xml constructor\n'); -->
     34        dump('******* vI_htmlTextBox.xml constructor\n');
    3535        ]]>
    3636    </constructor>
     
    6060        <setter><![CDATA[
    6161        if (!val) return;
     62        dump("cssSource set to " + val + "\n");
    6263        var head = this.contentDocument.getElementsByTagName("HEAD").item(0);
    6364        var range = document.createRange();
    6465        range.selectNode(head);
    6566        var css_text = this._getContents("chrome://v_identity/skin/" + val);
     67        dump("cssSource set to " + val + " cont.\n");
    6668        var documentFragment = range.createContextualFragment("<style type='text/css'>" + css_text + "</style>");
    6769        head.appendChild(documentFragment);
     70        dump("cssSource set to " + val + " done\n");
    6871        this._cssRead = true;
     72        ]]></setter>
     73    </property>
     74    <property name="htmlSource" >
     75        <setter><![CDATA[
     76        if (!val) return;
     77        dump("htmlSource set to " + val + "\n");
     78        var body = this.contentDocument.getElementsByTagName("BODY").item(0);
     79       
     80        var range = document.createRange();
     81        range.selectNode(body);
     82        var html_text = this._getContents("chrome://v_identity/content/doc/" + val);
     83        dump("htmlSource set to " + val + " cont.\n");
     84        var documentFragment = range.createContextualFragment(html_text);
     85        body.appendChild(documentFragment);
     86        for (var i = 0; i < body.children.length; i++)
     87            if (!body.children[i].id || body.children[i].id != "main") body.removeChild(body.children[i--]);
     88        dump("htmlSource set to " + val + " done\n");
    6989        ]]></setter>
    7090    </property>
  • chrome/content/v_identity/vI_prefDialog.js

    ref65ae r90d3d0  
    2424
    2525var vI_prefDialog = {
     26    help : function() {
     27        var selTabIndex = document.getElementById('prefTabbox').selectedIndex;
     28        // var selTab = this.currentIndex
     29        window.openDialog("chrome://v_identity/content/vI_Help.xul",0,"chrome, dialog, modal, alwaysRaised, resizable=yes", "docSmartReply.html")
     30    },
     31
    2632    preferences : Components.classes["@mozilla.org/preferences-service;1"]
    2733                .getService(Components.interfaces.nsIPrefService)
  • chrome/content/v_identity/vI_prefDialog_TB3.xul

    ref65ae r90d3d0  
    3232    xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    3333        onload="vI_prefDialog.init();"
    34         buttons="accept,cancel"
     34        buttons="accept,cancel,help"
    3535        ondialogaccept="vI_prefDialog.savePrefs();"
     36    ondialoghelp="vI_prefDialog.help()"
    3637        persist="screenX screenY"
    3738        title="&vI_prefDialog.dlgTitle.label;" />
  • chrome/content/v_identity/vI_prefDialog_preTB3.xul

    ref65ae r90d3d0  
    3232    xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    3333        onload="vI_prefDialog.init();"
    34         buttons="accept,cancel"
     34        buttons="accept,cancel,help"
    3535        ondialogaccept="vI_prefDialog.savePrefs();"
     36    ondialoghelp="vI_prefDialog.savePrefs();"
    3637        persist="screenX screenY"
    3738        title="&vI_prefDialog.dlgTitle.label;" />
Note: See TracChangeset for help on using the changeset viewer.