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

16 lines
316 B
JavaScript

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