Changeset 2652


Ignore:
Timestamp:
03/01/13 14:18:56 (11 years ago)
Author:
mwindhouwer
Message:

M mod-ISOcat-interface-gi/interface/JSXAPPS/ISOcat/components/DataCategoryEditor.xml
M mod-ISOcat-interface-gi/interface/JSXAPPS/ISOcat/js/org/isocat/gui/DCEditor.js

  • when the Description Section pane is shown the profiles list will always show a selected profile
Location:
cats/ISOcat/trunk/mod-ISOcat-interface-gi/interface
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cats/ISOcat/trunk/mod-ISOcat-interface-gi/interface/JSXAPPS/ISOcat/components/DataCategoryEditor.xml

    r2635 r2652  
    8181              <strings jsxname="cdf" jsxwidth="100%" jsxheight="100%" jsxxmlid="DC-dc-_jsx_1_4b" jsxcdfid="dc-_jsx_1_4b"></strings>
    8282              <object type="jsx3.gui.StackGroup">
    83                 <variants jsxoverflow="2" jsxselectedindex="1"></variants>
     83                <variants jsxoverflow="2" jsxselectedindex="0"></variants>
    8484                <strings jsxname="stackgroup" jsxrows="*,27,27"></strings>
    8585                <object type="jsx3.gui.Stack">
     
    8888                  <object type="jsx3.gui.Block">
    8989                    <variants jsxoverflow="2" jsxrelativeposition="0" jsxleft="0" jsxtop="0"></variants>
    90                     <strings jsxname="pane" jsxwidth="100%" jsxheight="100%" jsxdisplay="none" jsxpadding="5 5 0 5" jsxvisibility="visible"></strings>
     90                    <strings jsxname="pane" jsxwidth="100%" jsxheight="100%" jsxdisplay="" jsxpadding="5 5 0 5" jsxvisibility="visible"></strings>
    9191                    <dynamics jsxbgcolor="ISOcat logo bg color"></dynamics>
    9292                    <object type="jsx3.gui.CDF">
     
    589589                  <variants></variants>
    590590                  <strings jsxname="descriptiveInformation" jsxtext="Description Section"></strings>
     591                  <events jsxshow="this.getAncestorOfName(&quot;DataCategoryEditor&quot;).controller.focusDescrSection();"></events>
    591592                  <object type="jsx3.gui.Block">
    592593                    <variants jsxoverflow="2" jsxrelativeposition="0" jsxleft="0" jsxtop="0"></variants>
    593                     <strings jsxname="pane" jsxwidth="100%" jsxheight="100%" jsxdisplay="" jsxpadding="5 5 0 5" jsxvisibility="visible"></strings>
     594                    <strings jsxname="pane" jsxwidth="100%" jsxheight="100%" jsxdisplay="none" jsxpadding="5 5 0 5" jsxvisibility="visible"></strings>
    594595                    <dynamics jsxbgcolor="ISOcat logo bg color" jsxborder="@Inset Top"></dynamics>
    595596                    <object type="jsx3.gui.CDF">
  • cats/ISOcat/trunk/mod-ISOcat-interface-gi/interface/JSXAPPS/ISOcat/js/org/isocat/gui/DCEditor.js

    r2637 r2652  
    524524                    this.setCheck("profiles","none");
    525525                } else {
    526                         for(var i=0;i<profs.length;i++) {
    527                              this.profiles.selectRecord(profs[i]);
    528                         }
    529526                    this.setCheck("profiles","ok");
    530                     this.profiles.revealRecord(profs[0]);
    531                     this.profiles.repaintData();
    532            
    533             org.isocat.gui.DCEditor.log.info("revealed profile["+profs[0]+"]?");
     527                    this.profiles.setValue(profs);
    534528                }
    535529
     
    16221616                this.setDCType(this.cdf.getXML().getRecord("admin").type);
    16231617        };
     1618       
     1619        DCEditor_prototype.focusDescrSection = function() {
     1620        jsx3.sleep(function() { this.profiles.setValue(this.profiles.getSelectedIds()); },"revealSelectedProfile",this,true);
     1621        }
    16241622});
  • cats/ISOcat/trunk/mod-ISOcat-interface-gi/interface/settings/builder.xml

    r2636 r2652  
    5555      <record jsxid="recentFiles" type="array">
    5656        <record jsxid="0" type="string">components/appCanvas.xml</record>
    57         <record jsxid="1" type="string">components/ProfilesInput.xml</record>
    58         <record jsxid="2" type="string">components/DataCategoryEditor.xml</record>
     57        <record jsxid="1" type="string">components/DataCategoryEditor.xml</record>
     58        <record jsxid="2" type="string">components/ProfilesInput.xml</record>
    5959        <record jsxid="3" type="string">xml/dc.xml</record>
    6060        <record jsxid="4" type="string">components/SaveDC.xml</record>
Note: See TracChangeset for help on using the changeset viewer.