team4alfanous team mailing list archive
-
team4alfanous team
-
Mailing list archive
-
Message #00086
[Branch ~team4alfanous/alfanous/alfanous-git] Rev 278: Override click function of aya word links to avoid building a long link
------------------------------------------------------------
revno: 278
git commit: 34071244068f3f502e40046710469798a97c03b6
committer: Assem Chelli <assem.ch@xxxxxxxxx>
timestamp: Sat 2012-06-23 20:47:45 +0100
message:
Override click function of aya word links to avoid building a long link
for each word
modified:
interfaces/web/wui/css/screen.css
interfaces/web/wui/index.html
--
lp:alfanous
https://code.launchpad.net/~team4alfanous/alfanous/alfanous-git
Your team Alfanous team is subscribed to branch lp:alfanous.
To unsubscribe from this branch go to https://code.launchpad.net/~team4alfanous/alfanous/alfanous-git/+edit-subscription
=== modified file 'interfaces/web/wui/css/screen.css'
--- interfaces/web/wui/css/screen.css 2012-06-09 15:16:42 +0000
+++ interfaces/web/wui/css/screen.css 2012-06-23 19:47:45 +0000
@@ -62,6 +62,7 @@
}
a{color: gray;}
+.aya_words a { text-decoration: none; }
a:hover{color: green;}
.select {
background: url("../images/select.gif") no-repeat scroll right top transparent;
=== modified file 'interfaces/web/wui/index.html'
--- interfaces/web/wui/index.html 2012-06-23 18:27:24 +0000
+++ interfaces/web/wui/index.html 2012-06-23 19:47:45 +0000
@@ -252,7 +252,7 @@
results += "</span></legend>";
results += "<br><p align='center' style=' margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;'>";
results += "<span style='font-family:\"ArabeyesQr\", Scheherazade; line-height: 180%; font-size:22px; color:#7b563a;'><br>[ ";
- results += "<span style='font-family:\"me_quran\", Scheherazade; font-size:22px;'>"
+ results += "<span class='aya_words' style='font-family:\"me_quran\", Scheherazade; font-size:22px;'>"
aya_words = json.ayas[i].aya.text.split(" ");
@@ -266,7 +266,7 @@
}
else
{
- results += build_search_link(param,"" + aya_words[j] +"" ,false ) + aya_words[j] + "<a />" + " " ;
+ results += "<a href=''>" + aya_words[j] + "<a />" + " " ;
}
}
@@ -339,6 +339,16 @@
}
+ // Aya_words clicks control
+ $(".aya_words a").one('click', function(event) {
+ var param2 = param;
+ param2.page = 1;
+ param2.search = $(this).text();
+
+ redirect_to_params ( param2 );
+ event.preventDefault();
+ });
+
// Pages control
$(".pages a").one('click', function(event) {
var param2 = param;