From 700889bedd504d9889e9fda8b0e911b914066775 Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Sun, 9 Mar 2014 22:40:56 -0500 Subject: [PATCH] Adding file for new syntax highlighter changing OTP url for QR code creation --- indefero/src/IDF/Template/MarkdownPrefilter.php | 1 + indefero/src/IDF/templates/idf/user/myaccount.html | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/indefero/src/IDF/Template/MarkdownPrefilter.php b/indefero/src/IDF/Template/MarkdownPrefilter.php index ec88859..9396252 100644 --- a/indefero/src/IDF/Template/MarkdownPrefilter.php +++ b/indefero/src/IDF/Template/MarkdownPrefilter.php @@ -101,6 +101,7 @@ class IDF_Template_MarkdownPrefilter extends Pluf_Text_HTML_Filter 'caption' => array('class', 'dir', 'id', 'style', 'title', 'align'), // deprecated attribute), 'code' => array('class', 'dir', 'id', 'style', 'title'), + 'script' => array('type', 'class', 'dir', 'id', 'style', 'title'), 'dd' => array('class', 'dir', 'id', 'style', 'title'), 'del' => array('class', 'dir', 'id', 'style', 'title', 'cite', 'datetime'), diff --git a/indefero/src/IDF/templates/idf/user/myaccount.html b/indefero/src/IDF/templates/idf/user/myaccount.html index 49969fb..639f18a 100644 --- a/indefero/src/IDF/templates/idf/user/myaccount.html +++ b/indefero/src/IDF/templates/idf/user/myaccount.html @@ -181,7 +181,7 @@ $(document).ready(function() { { if ($("#id_otpkey").val() != "") { - var url = "https://chart.googleapis.com/chart?chs=300x300&cht=qr&chl=otpauth%3A%2F%2Ftotp%2F" + user + "?secret=" + $("#id_otpkey").val() + "%26issuer=srchub&choe=UTF-8"; + var url = "https://chart.googleapis.com/chart?chs=300x300&cht=qr&chl=otpauth%3A%2F%2Ftotp%2Fsrchub:" + user + "?secret=" + $("#id_otpkey").val() + "%26issuer=srchub&choe=UTF-8"; $("#QRcode").html(''); } else { $("#QRcode").html(''); @@ -194,13 +194,13 @@ $(document).ready(function() { for(var i = 0; i < 32; i++) key += chars[Math.floor(Math.random() * 32)]; $("#id_otpkey").val(key); - var url = "https://chart.googleapis.com/chart?chs=300x300&cht=qr&chl=otpauth%3A%2F%2Ftotp%2F" + user + "?secret=" + $("#id_otpkey").val().toUpperCase() + "%26issuer=srchub&choe=UTF-8"; + var url = "https://chart.googleapis.com/chart?chs=300x300&cht=qr&chl=otpauth%3A%2F%2Ftotp%srchub:" + user + "?secret=" + $("#id_otpkey").val().toUpperCase() + "%26issuer=srchub&choe=UTF-8"; $("#QRcode").html('') return false; }); if ($("#id_otpkey").val() != "") { - var url = "https://chart.googleapis.com/chart?chs=300x300&cht=qr&chl=otpauth%3A%2F%2Ftotp%2F" + user + "?secret=" + $("#id_otpkey").val().toUpperCase() + "%26issuer=srchub&choe=UTF-8"; + var url = "https://chart.googleapis.com/chart?chs=300x300&cht=qr&chl=otpauth%3A%2F%2Ftotp%2Fsrchub:" + user + "?secret=" + $("#id_otpkey").val().toUpperCase() + "%26issuer=srchub&choe=UTF-8"; $("#QRcode").html('') } });{/literal}