X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=blobdiff_plain;f=application%2Fviews%2Fvideo%2Fwatch_view.php;h=2da1ba0e309460a4e1cb71348e2fa159db9f6bb6;hb=ada355332b092d2bd0ec7845f62c307587c9aab0;hp=a775419df921288bfe614054f4a02d3f759f2bd1;hpb=6db375a0706b5328fbd53be4dd2e517c96560ea6;p=living-lab-site.git
diff --git a/application/views/video/watch_view.php b/application/views/video/watch_view.php
index a775419..2da1ba0 100644
--- a/application/views/video/watch_view.php
+++ b/application/views/video/watch_view.php
@@ -34,58 +34,68 @@
-
- lang->line('ui_uploaded_by') ?>
-
">
- lang->line('ui_on_date') ?>
-
-
+
-
-
- lang->line('ui_view') :
- $this->lang->line('ui_views') );
- ?>
-
-
-
-
@@ -134,7 +144,7 @@
});
$('.link-vote')
- .click(function() {
+ .click(function(event) {
var user_id = "";
var action, idOutput;
if ($(this).data('action') == 'like')
@@ -149,13 +159,15 @@
}
//alert(action + " " + user_id);
+ event.preventDefault();
+
if (user_id.length != 0)
{
$.ajax({
type: "GET",
url: "/"
+ action
- + "",
+ + "",
data: {t: ""+Math.random()},
dataType: "text",
success: function(text) {
@@ -179,7 +191,7 @@
{
$.ajax({
type: "GET",
- url: "",
+ url: "",
dataType: "text",
success: function(text) {
if (text)