photo.blade.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {!! $grid->render() !!}
  2. <style>
  3. p#vtip { display: none; position: absolute; padding: 10px; left: 5px; font-size: 0.8em; background-color: white; border: 1px solid #a6c9e2; -moz-border-radius: 5px; -webkit-border-radius: 5px; z-index: 9999 }
  4. p#vtip #vtipArrow { position: absolute; top: -10px; left: 5px }
  5. </style>
  6. <script>
  7. this.vtip = function() {
  8. this.xOffset = -10; // x distance from mouse
  9. this.yOffset = 15; // y distance from mouse
  10. $(".vtip").unbind().hover(
  11. function(e) {
  12. this.t = $(this).attr("title");
  13. this.title = '';
  14. this.top = (e.pageY + yOffset);
  15. this.left = (e.pageX + xOffset);
  16. $('body').css("cursor","help");
  17. $('p#vtip').width()>450?$('p#vtip').width(450):'';
  18. $('body').append( '<p id="vtip">' + this.t + '</p>' );
  19. $('p#vtip').css("top", this.top+"px").css("left", this.left+"px").fadeIn(0);
  20. },
  21. function() {
  22. this.title = this.t;
  23. $('body').css("cursor","");
  24. $("p#vtip").fadeOut("slow").remove();
  25. }
  26. ).mousemove(
  27. function(e) {
  28. this.top = (e.pageY + yOffset);
  29. this.left = (e.pageX + xOffset);
  30. $("p#vtip").css("top", this.top+"px").css("left", this.left+"px");
  31. }
  32. );
  33. };
  34. $(document).ready(function() {
  35. vtip();
  36. $(document).on('click','.audit_log',function() {
  37. var ls = $(this).attr('ls');
  38. $.post("{{admin_base_path()}}/personal/resumeAudit",{'id':ls,'type':2, '_token': '{{ csrf_token() }}'},function(result){
  39. $(".contentfade").html(result['html']);
  40. $("#myModalLabel").html(result['detail']);
  41. $("#dialog").show();
  42. $("#dialog").addClass('in');
  43. });
  44. });
  45. $(".close").click(function () {
  46. $("#dialog").removeClass('in');
  47. $("#dialog").hide();
  48. })
  49. });
  50. </script>