Invalid URL .
+Did you mean + ?
+ +Invalid ID in URL.
+ + + + +›
+ + + +
+
+
-
+
@@ -91,7 +102,8 @@
});
// Switch video plugin facilities
- $('#video-widget-tabs').tabs();
+ $('#video-widget-tabs')
+ .tabs();
$('#switch-to-ns-html5')
.click(function() {
$('#video-widget')
@@ -108,18 +120,98 @@
.nsvideo({
type: "",
src: ,
- //width: videoWidth,
- //height: videoHeight
- minWidth: 1200,
- maxWidth: 1400
- })
- .resize(function(e) {
- $('#video-widget-tabs')
- .css('width', $('#video-widget').css('width'));
- console.log($('#video-widget').css('width'));
+
+ showState: false,
+
+ minWidth: 640,
+ maxWidth: 1024,
+ initialDuration: "",
+
+ resize: function() {
+ $('#video-widget-tabs')
+ .css('width', $('#video-widget').css('width'));
+ }
});
-
- $('#video-widget-tabs')
- .css('width', $('#video-widget').css('width'));
+
+ $('.link-vote')
+ .click(function() {
+ var user_id = "";
+ var action, idOutput;
+ if ($(this).data('action') == 'like')
+ {
+ var action = 'like';
+ var idOutput = '#video-likes';
+ }
+ else
+ {
+ var action = 'dislike';
+ var idOutput = '#video-dislikes';
+ }
+ //alert(action + " " + user_id);
+
+ if (user_id.length != 0)
+ {
+ $.ajax({
+ type: "GET",
+ url: "/"
+ + action
+ + "",
+ data: {t: ""+Math.random()},
+ dataType: "text",
+ success: function(text) {
+ if (text)
+ $(idOutput).html(text);
+ else
+ alert('lang->line('ui_msg_repeated_action_restriction') ?>');
+ }
+ });
+ }
+ else
+ alert('lang->line('ui_msg_login_restriction') ?>');
+ })
+ .button();
+
+ $('#link-like')
+ .click(function() {
+ user_id = "";
+
+ if (user_id)
+ {
+ $.ajax({
+ type: "GET",
+ url: "",
+ dataType: "text",
+ success: function(text) {
+ if (text)
+ $('#video-likes').html(text);
+ else
+ alert('lang->line('ui_msg_repeated_action_restriction') ?>');
+ }
+ });
+ }
+ else
+ alert('lang->line('ui_msg_login_restriction') ?>');
+ })
+ .button();
+ $('#link-dislike')
+ .click(function() {
+ user_id = "";
+
+ if (user_id)
+ {
+ $.ajax({
+ type: "GET",
+ url: "",
+ data: {t: ""+Math.random()},
+ dataType: "text",
+ success: function(text) {
+ $('#video-dislikes').html(text);
+ }
+ });
+ }
+ else
+ alert('lang->line('ui_msg_login_restriction') ?>');
+ })
+ .button();
});
\ No newline at end of file
+ lang->line('ui_uploaded_by') ?>
+ ">
+ lang->line('ui_on_date') ?>
+
+
+
+
lang->line('ui_views') );
?>
-
- lang->line('ui_like') :
- $this->lang->line('ui_likes') );
- ?>
-
-
- lang->line('ui_dislike') :
- $this->lang->line('ui_dislikes') );
- ?>
-
-
-
- lang->line('ui_category'))
- . ': '. $video['category_title'] ?>
-
-
+
+
+
+ -
+
- lang->line('ui_category')) + . ': ' ?> + +
-
+
- lang->line('ui_license')).': ' ?> + +