Rev | Line | |
---|
[346] | 1 | (function($){ |
---|
| 2 | $.fn.setCursorToTextEnd = function() { |
---|
| 3 | $initialVal = this.val(); |
---|
| 4 | this.val($initialVal + ' '); |
---|
| 5 | this.val($initialVal); |
---|
| 6 | }; |
---|
| 7 | })(jQuery); |
---|
[360] | 8 | $(".btn#add_user").click(function () |
---|
| 9 | { |
---|
| 10 | $.ajax({ |
---|
| 11 | url: "cong_tac_vien/them", |
---|
| 12 | type: "POST", |
---|
| 13 | data: $("#add_user").serialize(), |
---|
| 14 | success: function (data, textStatus, jqXHR) |
---|
| 15 | { |
---|
| 16 | // $result = jQuery.parseJSON(data); |
---|
| 17 | $("#content").html(data); |
---|
| 18 | init_page(); |
---|
| 19 | |
---|
| 20 | }, |
---|
| 21 | error: function (jqXHR, textStatus, errorThrown) |
---|
| 22 | { |
---|
| 23 | $(".ajaxloading").hide(); |
---|
| 24 | } |
---|
| 25 | }); |
---|
| 26 | |
---|
| 27 | }) |
---|
Note: See
TracBrowser
for help on using the repository browser.