Changeset 6592


Ignore:
Timestamp:
Nov 12, 2014, 1:58:23 PM (8 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #1885: Plugin definitions view plug-in page uses onactivate event

Also fixed on the plug-in configurations page.

Location:
branches/3.3-stable/www/admin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3-stable/www/admin/pluginconfigurations/configurations.js

    r6400 r6592  
    6969      Buttons.addClickHandler('btnConfigure', configurations.configurePlugin, attributes);
    7070     
     71      if (Doc.element('main.annotations'))
     72      {
     73        TabControl.addTabActivateListener('main.annotations', AnnotationsList.loadOnce);
     74      }
    7175      TabControl.addTabActivateListener('main.history', History.loadOnce);
    7276    }
  • branches/3.3-stable/www/admin/pluginconfigurations/view_configuration.jsp

    r6311 r6592  
    404404      <t:tab id="annotations" title="Annotations"
    405405        tooltip="View annotation values" clazz="white"
    406         visible="<%=plugin != null && plugin.supports("net.sf.basedb.core.plugin.AnnotationSetterPlugin") %>"
    407         activate="AnnotationsList.loadOnce()">
     406        visible="<%=plugin != null && plugin.supports("net.sf.basedb.core.plugin.AnnotationSetterPlugin") %>">
    408407        <jsp:include page="../../common/annotations/list_frameset.jsp">
    409408          <jsp:param name="item_type" value="<%=itemType.name()%>" />
  • branches/3.3-stable/www/admin/plugindefinitions/plugins.js

    r6400 r6592  
    118118      Buttons.addClickHandler('btnUnload', plugins.unloadPlugin, attributes);
    119119      Buttons.addClickHandler('btnToggleDisabled', plugins.toggleDisabled);
    120      
     120
     121      if (Doc.element('main.annotations'))
     122      {
     123        TabControl.addTabActivateListener('main.annotations', AnnotationsList.loadOnce);
     124      }
    121125      TabControl.addTabActivateListener('main.history', History.loadOnce);
    122126    }
  • branches/3.3-stable/www/admin/plugindefinitions/view_plugin.jsp

    r6381 r6592  
    675675    <t:tab id="annotations" title="Annotations"
    676676      tooltip="View annotation values" clazz="white"
    677       visible="<%=!plugin.requiresConfiguration() && plugin.supports("net.sf.basedb.core.plugin.AnnotationSetterPlugin") %>"
    678       activate="AnnotationsList.loadOnce()">
     677      visible="<%=!plugin.requiresConfiguration() && plugin.supports("net.sf.basedb.core.plugin.AnnotationSetterPlugin") %>">
    679678      <jsp:include page="../../common/annotations/list_frameset.jsp">
    680679        <jsp:param name="item_type" value="<%=itemType.name()%>" />
Note: See TracChangeset for help on using the changeset viewer.