Changeset 654 for pro-violet-viettel/sourcecode/assets/js/frontend
- Timestamp:
- Dec 8, 2014 5:28:47 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/sourcecode/assets/js/frontend/lecture.js
r650 r654 1 1 if (licenseAvailable == "!OK") 2 2 { 3 $('#alert-services').modal('show'); 3 4 if (first_visit == '1') { 4 $('#alert-services').modal('show'); 5 $('#alert-services').modal('show'); 6 } 7 } 8 if (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 } 5 17 } 6 18 } 7 19 8 if (update_user_info=="1") 9 { 10 $('#update_user_info').modal({backdrop: 'static'}); 11 } 20 12 21 $("#update_user_info.btn").click(function () { 13 22 $(".error").html(""); … … 21 30 if (result.success == "1") 22 31 { 23 24 32 $('#update_user_info').modal('hide'); 33 25 34 } 26 35 else … … 28 37 for (var key in result.errors) 29 38 { 30 $("#" +result.errors[key]['field']+".error").html(result.errors[key]['content']);31 39 $("#" + result.errors[key]['field'] + ".error").html(result.errors[key]['content']); 40 32 41 } 33 42 } … … 42 51 43 52 $('#services-reg').click(function () { 44 45 window.location=url+"frontend/user/profile#services-register";53 $('#alert-services').modal('hide'); 54 window.location = url + "frontend/user/profile#services-register"; 46 55 }); 47 56 48 57 $('#save-package').click(function () { 49 58 DoSaveLecture(); 50 59 }); 51 60 … … 99 108 ; 100 109 101 function DoSaveLecture 102 110 function DoSaveLecture() { 111 g_Flash.SetVariable("command", "Press Save"); 103 112 } 104 113 105 function DoOpenLecture 106 107 114 function DoOpenLecture(filename) { 115 g_Flash.SetVariable("openedFileName", filename); 116 g_Flash.SetVariable("command", "Open File"); 108 117 } 109 118 … … 149 158 150 159 $(document).ready(function () { 151 InitViolet(); 160 InitViolet(); 152 161 //$('#open-lecture').click(function(e){DoOpenLecture('http://sbgapi.violet.vn/space/file/id/7');}); 153 162 154 163 })
Note: See TracChangeset
for help on using the changeset viewer.