You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nodebb/public/src/variables.js

15 lines
296 B
JavaScript

"use strict";
/*global ajaxify*/
(function(ajaxify) {
ajaxify.variables = {};
ajaxify.variables.parse = function() {
var dataEl = $('#content [ajaxify-data]');
if (dataEl.length) {
ajaxify.data = JSON.parse(decodeURIComponent(dataEl.attr('ajaxify-data')));
}
};
}(ajaxify || {}));