<commit_before><?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.preview.actions">
  <extension target="org.nuxeo.ecm.platform.actions.ActionService"
    point="actions">

    <!-- disable the old tab as we now use the showPreviewPopup action  -->
    <action id="TAB_PREVIEW" link="/incl/tabs/preview_tab.xhtml"
      enabled="false" order="200" label="label.document.preview"
      icon="/icons/file.gif">
      <category>VIEW_ACTION_LIST</category>
      <filter-id>view_preview</filter-id>
    </action>

    <action id="POPUP_PREVIEW" link="javascript:doPreview" order="130"
      enabled="false" label="label.document.preview" icon="/icons/pdf.png">
      <category>POPUP</category>
      <filter-id>popup_view_preview</filter-id>
    </action>

    <action id="showFancyBoxPreviewPopup" link="javascript:doPreviewPopup" order="130"
      enabled="true" label="label.document.preview" icon="/icons/preview.png">
      <category>POPUP</category>
      <filter-id>popup_view_preview</filter-id>
    </action>

    <action id="showFancyBoxPreview" order="50" type="fancybox"
      label="label.document.preview" icon="/icons/contextual_menu/preview.png">
      <category>DOCUMENT_UPPER_ACTION</category>
      <filter-id>view_preview</filter-id>
      <filter-id>not_folder</filter-id>
      <filter-id>not_anonymous</filter-id>
      <properties>
        <property name="iframe">
          #{previewActions.getCurrentDocumentPreviewPopupURL()}
        </property>
      </properties>
    </action>

  </extension>

  <extension target="org.nuxeo.ecm.platform.actions.ActionService"
    point="filters">

    <filter id="view_preview">
      <rule grant="true">
        <condition>#{previewActions.hasPreview}</condition>
      </rule>
    </filter>
<commit_msg>NXP-11044: mark preview action as supporting ajax<commit_after><?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.preview.actions">
  <extension target="org.nuxeo.ecm.platform.actions.ActionService"
    point="actions">

    <!-- disable the old tab as we now use the showPreviewPopup action  -->
    <action id="TAB_PREVIEW" link="/incl/tabs/preview_tab.xhtml"
      enabled="false" order="200" label="label.document.preview"
      icon="/icons/file.gif">
      <category>VIEW_ACTION_LIST</category>
      <filter-id>view_preview</filter-id>
    </action>

    <action id="POPUP_PREVIEW" link="javascript:doPreview" order="130"
      enabled="false" label="label.document.preview" icon="/icons/pdf.png">
      <category>POPUP</category>
      <filter-id>popup_view_preview</filter-id>
    </action>

    <action id="showFancyBoxPreviewPopup" link="javascript:doPreviewPopup" order="130"
      enabled="true" label="label.document.preview" icon="/icons/preview.png">
      <category>POPUP</category>
      <filter-id>popup_view_preview</filter-id>
    </action>

    <action id="showFancyBoxPreview" order="50" type="fancybox"
      label="label.document.preview" icon="/icons/contextual_menu/preview.png">
      <category>DOCUMENT_UPPER_ACTION</category>
      <filter-id>view_preview</filter-id>
      <filter-id>not_folder</filter-id>
      <filter-id>not_anonymous</filter-id>
      <properties>
        <property name="iframe">
          #{previewActions.getCurrentDocumentPreviewPopupURL()}
        </property>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

  </extension>

  <extension target="org.nuxeo.ecm.platform.actions.ActionService"
    point="filters">

    <filter id="view_preview">
      <rule grant="true">
        <condition>#{previewActions.hasPreview}</condition>
      </rule>
    </filter>

{'fraction_non_alphanumeric': 0.15591545429590997, 'fraction_numerical': 0.008509470216854241, 'mean_word_length': 3.788436268068331, 'pattern_counts': {'":': 0, '<': 93, '<?xml version=': 2, '>': 93, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1566394', 'n_tokens_mistral': 1166, 'n_tokens_neox': 1138, 'n_words': 160}