Update framework.js
Added prepend option '^' for AJAX framework "data-request-update" parameter
This commit is contained in:
parent
296e66fc28
commit
35defa381b
|
|
@ -161,6 +161,8 @@ if (window.jQuery === undefined)
|
|||
var selector = (options.update[partial]) ? options.update[partial] : partial
|
||||
if (jQuery.type(selector) == 'string' && selector.charAt(0) == '@') {
|
||||
$(selector.substring(1)).append(data[partial]).trigger('ajaxUpdate', [context, data, textStatus, jqXHR])
|
||||
} else if(jQuery.type(selector) == 'string' && selector.charAt(0) == '^'){
|
||||
$(selector.substring(1)).prepend(data[partial]).trigger('ajaxUpdate', [context, data, textStatus, jqXHR]);
|
||||
} else
|
||||
$(selector).html(data[partial]).trigger('ajaxUpdate', [context, data, textStatus, jqXHR])
|
||||
}
|
||||
|
|
@ -379,4 +381,4 @@ if (window.jQuery === undefined)
|
|||
$(document).on('render', callback)
|
||||
}
|
||||
|
||||
}(window.jQuery);
|
||||
}(window.jQuery);
|
||||
|
|
|
|||
Loading…
Reference in New Issue