Minor fixes

This commit is contained in:
Flavio Copes
2015-11-04 14:43:25 +01:00
parent cb8643b178
commit 37cf4d8092
2 changed files with 6 additions and 5 deletions

View File

@@ -787,7 +787,7 @@ class AdminController
/**
* Handles installing plugins and themes
*
* @return bool True is the action was performed
* @return bool True if the action was performed
*/
public function taskInstall()
{
@@ -816,7 +816,7 @@ class AdminController
/**
* Handles updating Grav
*
* @return bool True is the action was performed
* @return bool True if the action was performed
*/
public function taskUpdategrav()
{
@@ -840,7 +840,7 @@ class AdminController
/**
* Handles updating plugins and themes
*
* @return bool True is the action was performed
* @return bool True if the action was performed
*/
public function taskUpdate()
{
@@ -898,7 +898,7 @@ class AdminController
/**
* Handles uninstalling plugins and themes
*
* @return bool True is the action was performed
* @return bool True if the action was performed
*/
public function taskUninstall()
{

View File

@@ -320,7 +320,8 @@
if (!ajax) {
var form = $('<form>').attr({ method: method, action: action });
for (var name in values) { if (values.hasOwnProperty(name)) {
for (var name in values) {
if (values.hasOwnProperty(name)) {
$('<input>').attr({ type: 'hidden', name: name, value: values[name] }).appendTo(form);
}
}