Changeset 836
- Timestamp:
- Mar 26, 2015 4:43:02 PM (10 years ago)
- 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 205 205 g_Flash.SetVariable("command", "Init OK"); 206 206 } 207 208 209 /*setTimeout(function () {210 if (fileid != "")211 {212 DoOpenLecture(api_url+'space/file/id/' + fileid);213 }214 215 }, 1000);*/216 207 }) 217 208 -
pro-violet-viettel/www/deploy/20150304/assets/js/grid.js
r832 r836 34 34 } 35 35 } 36 36 37 var div = $('<div></div>',{'class':icon}); 37 38 if (thumb != null) $(div).append(thumb); … … 45 46 46 47 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});48 48 var divLink = $('<div></div>',{'class':'file-name'}).append(a,inputID,inputName,inputParent,inputType,inputFileUrl); 49 49 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 539 539 if($.inArray( $ext, [ "xvl"])>=0) 540 540 { 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}); 543 543 } 544 544 … … 973 973 $(statusbar).text(message); 974 974 } 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 976 984 this.initialize = function () { 977 985 init(); … … 983 991 }); 984 992 })(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.