web/data/cubicweb.widgets.js
changeset 8260 5a81fa526b30
parent 7943 ad0581296e2c
child 9377 4e0d8f06efbc
equal deleted inserted replaced
8259:1c5be4a1afd1 8260:5a81fa526b30
    43 jQuery(document).ready(function() {
    43 jQuery(document).ready(function() {
    44     buildWidgets();
    44     buildWidgets();
    45 });
    45 });
    46 
    46 
    47 function postJSON(url, data, callback) {
    47 function postJSON(url, data, callback) {
    48     return jQuery.post(url, data, callback, 'json');
    48     return jQuery.post(url, data, callback, AJAX_BASE_URL);
    49 }
    49 }
    50 
    50 
    51 function getJSON(url, data, callback) {
    51 function getJSON(url, data, callback) {
    52     return jQuery.get(url, data, callback, 'json');
    52     return jQuery.get(url, data, callback, AJAX_BASE_URL);
    53 }
    53 }
    54 
    54 
    55 
    55 
    56 (function ($) {
    56 (function ($) {
    57     var defaultSettings = {
    57     var defaultSettings = {