Changeset 835


Ignore:
Timestamp:
Mar 26, 2015 3:53:42 PM (10 years ago)
Author:
dungnv
Message:
 
Location:
pro-violet-viettel/www/deploy/20150304
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/www/deploy/20150304/application/modules/frontend/views/lecture_editor.php

    r833 r835  
    1212                                                                <?php $flashVars = 'online=true&applicationId=Violet Online' ?>
    1313                                                                <?php $flashVars.= '&commonLibList=sxIOE3.xml,sxIOE4.xml,sxIOE5.xml,tnIOE3.xml,tnIOE4.xml,tnIOE5.xml' ?>
    14                                                                 <?php $flashVars.= '&youtubeUrl='.$base_url.'assets/soanbai/Service/fake_youtube.php'.$langParam.'&command=Init OK' ?>
     14                                                                <?php $flashVars.= '&youtubeUrl='.$base_url.'assets/soanbai/Service/fake_youtube.php'.$langParam/* .'&command=Init OK' */ ?>
    1515                                                                <?php $flashVars.= '&licenseStatus='. ($licenseAvailable == 'OK' ? 'OK' : 'NG') ?>
    1616                                                                <?php $flashVars.= isset($licflashVars['id']) ? '&userId='. $licflashVars['id']:'' ?>
  • pro-violet-viettel/www/deploy/20150304/application/views/layout/footer.php

    r823 r835  
    4040                statusbar: 'status-bar',
    4141                datasource: 'ajax',
    42                 invisibledButtons: ['btnShare']
     42                invisibledButtons: ['btnShare'],
     43                filehosting: '<?php echo $this->config->item('api_url');?>'
    4344        });
    4445}
  • pro-violet-viettel/www/deploy/20150304/application/views/layout/frontend/header.php

    r782 r835  
    1919                <link rel="stylesheet" href="<?php echo $base_url;?>assets/css/custom.css" />
    2020                <script src="<?php echo $base_url;?>assets/js/ace-extra.min.js"></script>
     21                <script type="text/javascript">
     22                        var api_url = "<?php echo $this->config->item('api_url'); ?>";
     23                </script>
    2124                <style type="text/css" media="screen">
    2225                        /* .sidebar:before, .sidebar {background-color: transparent;} */
  • pro-violet-viettel/www/deploy/20150304/assets/js/frontend/lecture.js

    r832 r835  
    124124}
    125125
     126function DoOpenLectureOnLoad(filename) {
     127        g_Flash.SetVariable("openedFileName", filename);
     128        g_Flash.SetVariable("command", "Init&Open File");
     129}
     130
    126131function DoCloseLecture() {
    127132    g_Flash.SetVariable("command", "Quit App");
     
    192197    });
    193198   
     199    if (fileid != "")
     200    {
     201        console.log(api_url+'space/file/id/' + fileid);
     202        DoOpenLectureOnLoad(api_url+'space/file/id/' + fileid);
     203    }
     204    else {
     205        g_Flash.SetVariable("command", "Init OK");
     206    }
     207   
     208   
    194209    /*setTimeout(function () {
    195210        if (fileid != "")
  • pro-violet-viettel/www/deploy/20150304/assets/js/manager.js

    r831 r835  
    3333                if (o.datasource == undefined)
    3434                    o.datasource = 'ajax';
     35               
     36                if (o.filehosting == undefined)
     37                        o.filehosting = 'http://sbgapi.violet.vn/';
    3538               
    3639                if (o.invisibledButtons == undefined)
Note: See TracChangeset for help on using the changeset viewer.