Dotclear


Ignore:
Timestamp:
02/18/18 18:16:29 (7 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

use strict and no more linter warnings/errors as far as possible, switch from inline js to separate loaded file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/importExport/js/script.js

    r2566 r3709  
     1/*global $, dotclear */ 
     2'use strict'; 
    13 
    2 $(function(){if($('*.error').length>0){return;} 
    3 $('#ie-gui form[method=post]:has(input[type=hidden][name=autosubmit])').each(function(){$('input[type=submit]',this).remove();$(this).after('<p style="font-size:2em;text-align:center">'+dotclear.msg.please_wait+'</p>');$(this).submit();});}); 
     4$(function() { 
     5  if ($('*.error').length > 0) { 
     6    return; 
     7  } 
     8  $('#ie-gui form[method=post]:has(input[type=hidden][name=autosubmit])').each(function() { 
     9    $('input[type=submit]', this).remove(); 
     10    $(this).after('<p style="font-size:2em;text-align:center">' + dotclear.msg.please_wait + '</p>'); 
     11    $(this).submit(); 
     12  }); 
     13}); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map