Changeset 3706:170617361020 for inc/js
- Timestamp:
- 02/16/18 16:01:59 (8 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/js/post.js
r3645 r3706 1 /*global $, post_remember_str */ 2 'use strict'; 3 1 4 $(function() { 2 5 $('#comment-form p:has(input[type=submit][name=preview],button[type=submit][name=preview])'). … … 49 52 var cpath = $('h1 a').attr('href'); 50 53 if (!cpath) { 51 cpath = "/";54 cpath = '/'; 52 55 } else { 53 cpath = cpath.replace(/.*:\/\/[^\/]*([^?]*).*/g, "$1");56 cpath = cpath.replace(/.*:\/\/[^\/]*([^?]*).*/g,'$1'); 54 57 } 55 58
Note: See TracChangeset
for help on using the changeset viewer.