X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=blobdiff_plain;f=application%2Fviews%2Fvideo%2Fwatch_view.php;h=4477f8fe943aaf1721e705257ed288e1cd82bc70;hb=66dc2204a919e2c29b2aa9330ea18026d58540d9;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..4477f8f 100644
--- a/application/views/video/watch_view.php
+++ b/application/views/video/watch_view.php
@@ -34,58 +34,74 @@
-
- lang->line('ui_uploaded_by') ?>
-
">
- lang->line('ui_on_date') ?>
-
-
+
-
-
- lang->line('ui_view') :
- $this->lang->line('ui_views') );
- ?>
-
-
-
-
@@ -134,7 +150,7 @@
});
$('.link-vote')
- .click(function() {
+ .click(function(event) {
var user_id = "";
var action, idOutput;
if ($(this).data('action') == 'like')
@@ -149,13 +165,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 +197,7 @@
{
$.ajax({
type: "GET",
- url: "",
+ url: "",
dataType: "text",
success: function(text) {
if (text)
@@ -213,5 +231,32 @@
alert('lang->line('ui_msg_login_restriction') ?>');
})
.button();
+
+ $('#video-info-details').hide();
+
+ $('#a-show-info-details')
+// .button({
+// icons: {
+// primary: 'ui-icon-triangle-1-s'
+// },
+// text: false
+// })
+ .click(function(event) {
+ event.preventDefault(true);
+ $('#video-shorted-description').toggle();
+ $('#video-info-details').fadeToggle();
+
+ //console.log($(this).button('option', 'icons'));
+ if ($(this).data('val') == 'more')
+ {
+ $(this).data('val', 'less');
+ $(this).html('lang->line('video_show_less') ?>');
+ }
+ else
+ {
+ $(this).data('val', 'more');
+ $(this).html('lang->line('video_show_more') ?>');
+ }
+ });
});
\ No newline at end of file