From 7588c4ecc1a931f0f79355abac00d678d03b08a3 Mon Sep 17 00:00:00 2001 From: ovclas Date: Thu, 4 Oct 2012 01:58:36 +0000 Subject: [PATCH] issue 2390 Importer UI refactoring git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11574 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/importer/tpl/index.html | 103 ++++++++++++---------- modules/importer/tpl/js/importer_admin.js | 8 +- 2 files changed, 58 insertions(+), 53 deletions(-) diff --git a/modules/importer/tpl/index.html b/modules/importer/tpl/index.html index 6a626741d..db80c3802 100644 --- a/modules/importer/tpl/index.html +++ b/modules/importer/tpl/index.html @@ -5,28 +5,28 @@

{$XE_VALIDATOR_MESSAGE}

+
+

{$lang->type_module}

-

{$lang->type_module}

-
    -
  • -

    {$lang->xml_path} {$lang->path_info}

    -

    - - - -

    -
  • -
  • +
    +

    {$lang->xml_path} {$lang->path_info}

    +

    + + + +

    +
    +

    {$lang->data_destination}
    {$lang->import_desc}

    - +

    -
  • -
  • -

    {$lang->guestbook_destination}

    -
    - {$lang->find_site} -
    -
      -
      +
      +
      +

      {$lang->guestbook_destination}

      +
      + {$lang->find_site} +
      +
        -

        - -

        -

        - -

        -
      • -
      • -

        {$lang->about_ttxml_user_id}

        -

        -
      • -
      • -

        {$lang->import_step_desc[3]}

        -

        {$lang->type_syncmember}

        -
      • -
      -
      +
      +

      + +

      +

      + +

      + +
      +

      {$lang->about_ttxml_user_id}

      +

      +
      +
      +

      {$lang->import_step_desc[3]}

      +

      {$lang->type_syncmember}

      +
      +
      +
      +
      @@ -123,13 +124,17 @@

      - {$lang->preprocessing} - - - - 0/0 - - 0% +

      +

      {$lang->preprocessing}

      + +
      +
      +
      +
      +
      + 0% + (0/0) +

      diff --git a/modules/importer/tpl/js/importer_admin.js b/modules/importer/tpl/js/importer_admin.js index 83d53c331..b8891ae7e 100644 --- a/modules/importer/tpl/js/importer_admin.js +++ b/modules/importer/tpl/js/importer_admin.js @@ -27,9 +27,9 @@ $('.checkxml') function on_complete(data) { var $ul, $ttxml, $xml; - $ul = $this.closest('ul'); - $xml = $ul.find('>.xml'); - $ttxml = $ul.find('>.ttxml'); + //$ul = $this.closest('ul'); + $xml = $form.find('>.xml'); + $ttxml = $form.find('>.ttxml'); $message.text(data.result_message); @@ -72,7 +72,7 @@ $('.checkxml') }) .end() .find('.desc').hide().end() - .closest('ul').find('>li.ttxml').hide().end().end() + .closest('form').find('>.ttxml').hide().end().end() .closest('form').find(':submit').attr('disabled','disabled'); // hide 'sync member' block