Skip to content

Commit

Permalink
html5shiv & respond.js from components; codacy issues fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
fr00d committed Jul 17, 2017
1 parent d363da9 commit dff9a65
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 521 deletions.
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@
"components/jquery": "2.2.4",
"components/jqueryui": "1.10.4",
"components/font-awesome": "4.3.0",
"trentrichardson/jquery-timepicker-addon": "1.6.3"
"trentrichardson/jquery-timepicker-addon": "1.6.3",
"afarkas/html5shiv": "3.7.3",
"rogeriopradoj/respond": "1.4.2"
},
"require-dev": {

Expand Down
4 changes: 2 additions & 2 deletions module/Application/view/layout/admin.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
->appendFile($this->basePath() . '/js/custom_backend.js')
->appendFile($this->basePath() . '/vendor/raphael/raphael.min.js')
->appendFile($this->basePath() . '/vendor/morrisjs/morris.min.js')
->prependFile($this->basePath() . '/js/respond.min.js', 'text/javascript', array('conditional' => 'lt IE 9',))
->prependFile($this->basePath() . '/js/html5shiv.js', 'text/javascript', array('conditional' => 'lt IE 9',))
->prependFile($this->basePath() . '/components/respond/respond-built.js', 'text/javascript', array('conditional' => 'lt IE 9',))
->prependFile($this->basePath() . '/components/html5shiv/html5shiv-built.js', 'text/javascript', array('conditional' => 'lt IE 9',))
; ?>

</head>
Expand Down
5 changes: 2 additions & 3 deletions module/Application/view/layout/layout.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,13 @@
<?php echo $this->headScript()
->prependFile($this->basePath() . '/components/bootstrap/js/bootstrap.min.js')
->prependFile($this->basePath() . '/components/jquery-timepicker-addon/dist/jquery-ui-timepicker-addon.js')
->prependFile($this->basePath() . '/js/multidatespicker/jquery-ui.multidatespicker.min.js')
->prependFile($this->basePath() . '/components/jquery-ui/jquery-ui.min.js')
->prependFile($this->basePath() . '/components/jquery/jquery.min.js')
->prependFile($this->basePath() . '/js/jquery.cookiecuttr.js')
->prependFile($this->basePath() . '/js/jquery.cookie.js')
->appendFile($this->basePath() . '/js/custom.js')
->prependFile($this->basePath() . '/js/respond.min.js', 'text/javascript', array('conditional' => 'lt IE 9',))
->prependFile($this->basePath() . '/js/html5shiv.js', 'text/javascript', array('conditional' => 'lt IE 9',))
->prependFile($this->basePath() . '/components/respond/respond-built.js', 'text/javascript', array('conditional' => 'lt IE 9',))
->prependFile($this->basePath() . '/components/html5shiv/html5shiv-built.js', 'text/javascript', array('conditional' => 'lt IE 9',))
; ?>


Expand Down
4 changes: 2 additions & 2 deletions module/Application/view/layout/onsite.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
->prependFile($this->basePath() . '/components/jquery-ui/jquery-ui.min.js')
->prependFile($this->basePath() . '/components/jquery/jquery.min.js')
->appendFile($this->basePath() . '/js/custom_onsite.js')
->prependFile($this->basePath() . '/js/respond.min.js', 'text/javascript', array('conditional' => 'lt IE 9',))
->prependFile($this->basePath() . '/js/html5shiv.js', 'text/javascript', array('conditional' => 'lt IE 9',))
->prependFile($this->basePath() . '/components/respond/respond-built.js', 'text/javascript', array('conditional' => 'lt IE 9',))
->prependFile($this->basePath() . '/components/html5shiv/html5shiv-built.js', 'text/javascript', array('conditional' => 'lt IE 9',))
; ?>

</head>
Expand Down
2 changes: 1 addition & 1 deletion module/ErsBase/src/ErsBase/Service/StatusService.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function setPackageStatus(Entity\Package $package, $status, $flush=true)
foreach($package->getItems() as $item) {
if(!in_array($item->getStatus()->getValue(), $ignore)) {
if($item->getStatus()->getValue() != $status->getValue()) {
echo "set item (".$item->getId().") status from ".$item->getStauts()->getValue()." to ".$status->getValue().PHP_EOL;
error_log("set item (".$item->getId().") status from ".$item->getStauts()->getValue()." to ".$status->getValue());
}
$this->setItemStatus($item, $status, false);
}
Expand Down
Loading

0 comments on commit dff9a65

Please sign in to comment.