Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. $(function() {
  2. $(".gsmDegistir").editable("'.$yazilimurl.'?sayfa=ajax;stil=smsRehber;islem=gsmDegistir", {
  3. indicator : '<img src="'.$resimurl.'/site/ajax-loader.gif">',
  4. tooltip : "'.T_('Düzenlemek için çift tıklayın...').'",
  5. event : "dblclick",
  6. style : "inherit",
  7. cancel : "İptal",
  8. submit : "OK",
  9. placeholder : "",
  10. id : "trid",
  11. name : "yeniGsm"
  12. });});
  13.  
  14. $(document).ready(function() {
  15. function loading_show()
  16. {
  17. $("#icerikYukleniyor").css("display","block");
  18. }
  19.  
  20. function loading_hide()
  21. {
  22. $("#icerikYukleniyor").css("display","none");
  23. }
  24.  
  25. function loadData(page)
  26. {
  27. loading_show();
  28. var rgid = $("select#grupSec").val();
  29. $.ajax({
  30. type: "POST",
  31. url: "'.$yazilimurl.'?sayfa=ajax;stil=smsRehber;islem=rehberListesi",
  32. data: "p=" + page + "&rgid=" + rgid,
  33. success: function(veri) {
  34. $("#rehberTelefonListe").ajaxComplete(function(event, request, settings)
  35. {
  36. loading_hide();
  37. $("#rehberTelefonListe").html(veri);
  38. });
  39. },
  40. error: function() {
  41. $("#rehberTelefonListe").html("'.T_('Bağlantı sorunu oluştu.').'");
  42. }
  43. });
  44. }
  45.  
  46. loadData(1); // For first time page load default results
  47. $("#rehberTelefonListe .pagination li.active").live("click",function(){
  48. var page = $(this).attr("p");
  49. loadData(page);
  50. });
  51. });});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement