1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 06:38:00 +02:00

Add e107::ajax() to provide macro methods for createing Ajax commands.

This commit is contained in:
Lóna Lore
2016-03-03 11:50:36 +01:00
parent 1001798237
commit 4d0cdfc0ba
3 changed files with 295 additions and 10 deletions

View File

@@ -508,16 +508,6 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
var $element = $(command.target);
$element[command.method].apply($element, command.arguments);
break;
// Command to set attribute for element.
case 'attr':
$newtarget.attr(command.name, command.value);
break;
// Command to remove attribute from element.
case 'removeAttr':
$newtarget.removeAttr(command.name);
break;
}
});
};