Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script charset="windows-1251">
- $(document).ready(function(){
- $('.select_councelor').change(function(){
- var councelor = $(this).val();
- var id = $(this).parent().next().next().children().val();
- // alert('<?php echo Yii::app()->createUrl('/Career/setCounc')?>');
- $.post('<?php echo Yii::app()->createUrl('/setCouncelor')?>', {id:id, councelor:councelor }).done(function(data){
- })
- })
- $('.approve').click(function(){
- var id = $(this).parent().next().children().val();
- $.post('<?php echo Yii::app()->createUrl('/career/Approved')?>', {id:id}).done(function(data){
- })
- })
- $('.delete').click(function(){
- id = $(this).parent().next().next().next().children().val();
- // alert(id);
- var del = confirm('Are you sure?');
- if(del == true) window.location.href = "<?php echo Yii::app()->createUrl('/career/Approved/id/')?>"+id;
- })
- $('.decline').click(function(){
- id = $(this).parent().prev().children().val();
- // alert(id);
- var del = prompt('Are you sure? Type the reason please.', '');
- // alert(del);
- if(del != null) {
- $.post('<?php echo Yii::app()->createUrl('/career/Decline')?>', {id:id, reason:del}).done(function(data){
- })
- }
- })
- // var a = $('.from:first').text().length;
- // var a = a.substr(1, 10)
- // console.log(a);
- })
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement