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:
@@ -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;
|
||||
}
|
||||
});
|
||||
};
|
||||
|
Reference in New Issue
Block a user