Dotclear

Changeset 3706:170617361020 for inc/js


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

use strict and no more linter warnings/errors as far as possible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/js/post.js

    r3645 r3706  
     1/*global $, post_remember_str */ 
     2'use strict'; 
     3 
    14$(function() { 
    25     $('#comment-form p:has(input[type=submit][name=preview],button[type=submit][name=preview])'). 
     
    4952          var cpath = $('h1 a').attr('href'); 
    5053          if (!cpath) { 
    51                cpath = "/"; 
     54               cpath = '/'; 
    5255          } else { 
    53                cpath = cpath.replace(/.*:\/\/[^\/]*([^?]*).*/g,"$1"); 
     56               cpath = cpath.replace(/.*:\/\/[^\/]*([^?]*).*/g,'$1'); 
    5457          } 
    5558 
Note: See TracChangeset for help on using the changeset viewer.

Sites map