Changeset 836


Ignore:
Timestamp:
Mar 26, 2015 4:43:02 PM (10 years ago)
Author:
dungnv
Message:
 
Location:
pro-violet-viettel/www/deploy/20150304/assets/js
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/www/deploy/20150304/assets/js/frontend/lecture.js

    r835 r836  
    205205        g_Flash.SetVariable("command", "Init OK");
    206206    }
    207    
    208    
    209     /*setTimeout(function () {
    210         if (fileid != "")
    211         {
    212             DoOpenLecture(api_url+'space/file/id/' + fileid);
    213         }
    214 
    215     }, 1000);*/
    216207})
    217208
  • pro-violet-viettel/www/deploy/20150304/assets/js/grid.js

    r832 r836  
    3434                                        }
    3535                }
     36               
    3637                                var div = $('<div></div>',{'class':icon});
    3738                                if (thumb != null) $(div).append(thumb);
     
    4546                               
    4647                                var a = $('<a></a>',{id: node.item.id,href: '#',rel: node.item.name,text: node.item.name});
    47                                 //var nameplace = $('<div></div>',{id: node.item.id,rel: node.item.name,text: node.item.name});
    4848                                var divLink = $('<div></div>',{'class':'file-name'}).append(a,inputID,inputName,inputParent,inputType,inputFileUrl);                           
    4949                                var li = $('<li></li>',{'class':'vscell',id:typeid+node.item.id}).append(div, divLink);
  • pro-violet-viettel/www/deploy/20150304/assets/js/manager.js

    r835 r836  
    539539                    if($.inArray( $ext, [ "xvl"])>=0)
    540540                   {
    541                        var redirect = 'http://spacedemo.violet.vn/frontend/lecture/';
    542                         $.redirectPost(redirect, {fileid: node.id});
     541                       var redirect = o.host + 'frontend/lecture/';
     542                       self.redirectPost(redirect, {fileid: node.id});
    543543                    }
    544544                   
     
    973973                        $(statusbar).text(message);
    974974                }
    975 
     975               
     976                this.redirectPost = function(location, args){
     977                    var form = '';
     978                    $.each( args, function( key, value ) {
     979                        form += '<input type="hidden" name="'+key+'" value="'+value+'">';
     980                    });
     981                    $('<form action="'+location+'" method="POST">'+form+'</form>').appendTo('body').submit();
     982                }
     983               
    976984                this.initialize = function () {
    977985                    init();
     
    983991        });
    984992    })(jQuery);
    985 $.extend(
    986 {
    987     redirectPost: function(location, args)
    988     {
    989         var form = '';
    990         $.each( args, function( key, value ) {
    991             form += '<input type="hidden" name="'+key+'" value="'+value+'">';
    992         });
    993         $('<form action="'+location+'" method="POST">'+form+'</form>').appendTo('body').submit();
    994     }
    995 });
Note: See TracChangeset for help on using the changeset viewer.