[geeklog-hg] geeklog: Fixed a bug where context help for "date formats" didn'...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sat Jan 26 00:02:48 EST 2013
changeset 8931:b98a0ceb59f5
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/b98a0ceb59f5
user: Kenji ITO <mystralkk at gmail.com>
date: Sat Jan 26 14:01:25 2013 +0900
description:
Fixed a bug where context help for "date formats" didn't work (bug #0001538)
diffstat:
public_html/javascript/admin.configuration.js | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diffs (28 lines):
diff -r 2c92ec6e923e -r b98a0ceb59f5 public_html/javascript/admin.configuration.js
--- a/public_html/javascript/admin.configuration.js Wed Jan 23 01:23:23 2013 +0900
+++ b/public_html/javascript/admin.configuration.js Sat Jan 26 14:01:25 2013 +0900
@@ -164,6 +164,15 @@
var a = $(data).find('a[name=' + confVar + ']');
var ths = a.parent().parent().parent().children("tr:first").children("th");
var tds = a.parent().parent().children("td");
+ var desc = tds.eq(2).html();
+
+ // Changes URI fragment into an absolite URI + fragment
+ desc = desc.replace('<a href="spamx.html"', '<a href="' + glConfigDocUrl.substr(0, glConfigDocUrl.lastIndexOf('/')) + '/spamx.html" target="_blank"');
+ desc = desc.replace('<a href="#url-rewrite">', '<a href="' + glConfigDocUrl + '#url-rewrite" target="_blank">');
+ desc = desc.replace('<a href="#date_formats">', '<a href="' + glConfigDocUrl + '#date_formats" target="_blank">');
+ desc = desc.replace('<a href="#Localization">', '<a href="' + glConfigDocUrl + '#Localization" target="_blank">');
+ desc = desc.replace('<a href="#desc_advanced_editor">', '<a href="' + glConfigDocUrl + '#desc_advanced_editor" target="_blank">');
+
tds.eq(0).children("a").attr('href', attrHref + '#' + confVar);
tds.eq(0).children("a").attr('target', 'help');
$('#tooltip-content').html(
@@ -172,7 +181,7 @@
'<div class="tooltip-block"><div class="tooltip-title">' + ths.eq(1).html() + '</div>' +
'<div id="tooltip-default" class="tooltip-doc">' + tds.eq(1).html() + '</div></div>' +
'<div class="tooltip-block"><div class="tooltip-title">' + ths.eq(2).html() + '</div>' +
- '<div id="tooltip-description" class="tooltip-doc">' + tds.eq(2).html() + '</div></div>' +
+ '<div id="tooltip-description" class="tooltip-doc">' + desc + '</div></div>' +
'<a href="javascript:void(0);" id="tooltip-close">X</a>'
);
} else {
More information about the geeklog-cvs
mailing list