[sagenb] 113/157: CSS for introspect dialog style
felix salfelder
felix-guest at moszumanska.debian.org
Mon Dec 22 16:51:58 UTC 2014
This is an automated email from the git hooks/post-receive script.
felix-guest pushed a commit to branch master
in repository sagenb.
commit 34a6a00faa7fb26484b77c7819760cd4d3ae45e6
Author: kcrisman <kcrisman at gmail.com>
Date: Mon Oct 20 14:19:36 2014 -0400
CSS for introspect dialog style
CSS should take care of jQuery dialog element title styling due to XSS vulnerabilities, so we just go along with it.
---
sagenb/data/sage/js/master.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/sagenb/data/sage/js/master.js b/sagenb/data/sage/js/master.js
index 03b336b..bde001b 100644
--- a/sagenb/data/sage/js/master.js
+++ b/sagenb/data/sage/js/master.js
@@ -27,11 +27,11 @@ $(function () {
if (name.slice(-2) === '??') {
// Source code.
name = name.slice(0, -2);
- style = 'color: #007020';
+ style = 'source';
} else if (name.slice(-1) === '?' || name.slice(-1) === '(') {
// Docstring.
name = name.slice(0, -1);
- style = 'color: #0000aa';
+ style = 'doc';
}
halt_introspection(id);
@@ -39,8 +39,8 @@ $(function () {
ds_elem.dialog({
height: 600,
width: '90%',
- title: '<span style="' + style + '">' + name + '<span>',
- dialogClass: 'docstring-introspection-dialog',
+ title: name,
+ dialogClass: 'docstring-introspection-dialog-'+style,
'close': function (event, ui) {
ds_elem.dialog('destroy').remove();
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagenb.git
More information about the debian-science-commits
mailing list