Ignore:
Timestamp:
Dec 8, 2014 5:28:47 PM (10 years ago)
Author:
quyenla
Message:

Trail Message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/sourcecode/assets/js/frontend/lecture.js

    r650 r654  
    11if (licenseAvailable == "!OK")
    22{
     3    $('#alert-services').modal('show');
    34    if (first_visit == '1') {
    4         $('#alert-services').modal('show');
     5        $('#alert-services').modal('show');
     6    }
     7}
     8if (first_visit == '1') {
     9    if (update_user_info == "1")
     10    {
     11        $('#update_user_info').modal({backdrop: 'static'});
     12    } else {
     13        if (p_id == 5)
     14        {
     15            $('#alert-trial-services').modal('show');
     16        }
    517    }
    618}
    719
    8 if (update_user_info=="1")
    9 {
    10     $('#update_user_info').modal({backdrop: 'static'});
    11 }
     20
    1221$("#update_user_info.btn").click(function () {
    1322    $(".error").html("");
     
    2130            if (result.success == "1")
    2231            {
    23                                 $('#update_user_info').modal('hide');
    24                
     32                $('#update_user_info').modal('hide');
     33
    2534            }
    2635            else
     
    2837                for (var key in result.errors)
    2938                {
    30                     $("#"+result.errors[key]['field']+".error").html(result.errors[key]['content']);
    31                    
     39                    $("#" + result.errors[key]['field'] + ".error").html(result.errors[key]['content']);
     40
    3241                }
    3342            }
     
    4251
    4352$('#services-reg').click(function () {
    44         $('#alert-services').modal('hide');
    45         window.location=url+"frontend/user/profile#services-register";
     53    $('#alert-services').modal('hide');
     54    window.location = url + "frontend/user/profile#services-register";
    4655});
    4756
    4857$('#save-package').click(function () {
    49         DoSaveLecture();
     58    DoSaveLecture();
    5059});
    5160
     
    99108;
    100109
    101 function DoSaveLecture () {
    102         g_Flash.SetVariable("command", "Press Save");
     110function DoSaveLecture() {
     111    g_Flash.SetVariable("command", "Press Save");
    103112}
    104113
    105 function DoOpenLecture (filename) {
    106         g_Flash.SetVariable("openedFileName", filename);
    107         g_Flash.SetVariable("command", "Open File");
     114function DoOpenLecture(filename) {
     115    g_Flash.SetVariable("openedFileName", filename);
     116    g_Flash.SetVariable("command", "Open File");
    108117}
    109118
     
    149158
    150159$(document).ready(function () {
    151     InitViolet();   
     160    InitViolet();
    152161    //$('#open-lecture').click(function(e){DoOpenLecture('http://sbgapi.violet.vn/space/file/id/7');});
    153    
     162
    154163})
Note: See TracChangeset for help on using the changeset viewer.