Bug #7645 ยป 0001-Fix-consistency-of-anchor-text-selection-order.patch
resources/themes/default/wt.css | ||
---|---|---|
637 | 637 |
float:right; |
638 | 638 |
} |
639 | 639 | |
640 |
.Wt-tabs li a, .Wt-tabs li button { |
|
641 |
text-decoration: none; |
|
642 |
} |
|
643 | ||
640 | 644 |
.Wt-tabs .itemselected { |
641 | 645 |
background-position:100% -150px; |
642 | 646 |
} |
src/Wt/WAnchor.C | ||
---|---|---|
140 | 140 | |
141 | 141 |
void WAnchor::enableAjax() |
142 | 142 |
{ |
143 |
if (linkState_.link.type() == LinkType::InternalPath) { |
|
143 |
if ((linkState_.link.type() == LinkType::InternalPath) |
|
144 |
|| (linkState_.link.isNull())) { |
|
144 | 145 |
flags_.set(BIT_LINK_CHANGED); |
145 | 146 |
repaint(); |
146 | 147 |
} |
... | ... | |
200 | 201 |
{ |
201 | 202 |
WApplication *app = WApplication::instance(); |
202 | 203 | |
203 |
if (linkState.link.isNull() || widget->isDisabled()) |
|
204 |
element.removeAttribute("href"); |
|
205 |
else { |
|
204 |
if (linkState.link.isNull() || widget->isDisabled()) { |
|
205 |
if (app->environment().javaScript()) |
|
206 |
element.setAttribute("href", "javascript:void(0);"); |
|
207 |
else |
|
208 |
element.removeAttribute("href"); |
|
209 |
} else { |
|
206 | 210 |
std::string url = linkState.link.resolveUrl(app); |
207 | 211 | |
208 | 212 |
/* |
209 |
- |