Browse files

fix js errors in csvimport

  • Loading branch information...
1 parent 7a1d0cb commit eee05b3f0be77103dab74686e813bf4d275b5e43 @yamalight yamalight committed Jul 5, 2011
Showing with 3 additions and 2 deletions.
  1. +1 −0 CsvimportController.php
  2. +1 −1 TabularImporter.php
  3. +1 −1 scripts/csvimport.js
View
1 CsvimportController.php
@@ -24,6 +24,7 @@ public function init()
parent::init();
$this->view->headScript()->appendFile($this->_componentUrlBase . 'scripts/csvimport.js');
+ $this->view->headScript()->appendFile($this->_componentUrlBase . 'scripts/rdfa.object.js');
}
public function indexAction()
View
2 TabularImporter.php
@@ -169,7 +169,7 @@ public function createConfigurationView($urlBase) {
$this->view->table = $this->view->partial('importer/tabular.phtml', array(
'data' => $data,
- 'script' => $this->componentConfig->urlBase . 'extensions2/csvimport/scripts/autosuggest.js',
+ 'script' => $this->componentConfig->urlBase . 'extensions/csvimport/scripts/autosuggest.js',
'tableClass' => 'csvimport',
'examples' => $this->parsedFile[0],
'baseUri' => $model->getModelUri(),
View
2 scripts/csvimport.js
@@ -43,7 +43,7 @@ $(document).ready(function () {
}
// set uribase value
- if( uribase.length < 1 ){
+ if( uribase.length < 1 && typeof salt != 'undefined' ){
uribase = RDFAUTHOR_DEFAULT_GRAPH + '/' + salt + '/';
}
$("#uribase").val(uribase);

0 comments on commit eee05b3

Please sign in to comment.