Merge pull request #1973 from brayanpereyra/master
Resolución de BUG 12570 - Adición para mostrar Extjs en ldapAdvanced
This commit is contained in:
@@ -245,6 +245,15 @@ if(Ext.grid.GridView){
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if(Ext.grid.GroupingView){
|
||||||
|
Ext.apply(Ext.grid.GroupingView.prototype, {
|
||||||
|
emptyGroupText : '(Nenhum)',
|
||||||
|
groupByText : 'Grupo por este campo',
|
||||||
|
showGroupsText : 'Mostrar em Grupos'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if(Ext.grid.PropertyColumnModel){
|
if(Ext.grid.PropertyColumnModel){
|
||||||
Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
|
Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
|
||||||
nameText : "Nome",
|
nameText : "Nome",
|
||||||
@@ -258,6 +267,8 @@ if (Ext.ux.grid.RowEditor) {
|
|||||||
Ext.ux.grid.RowEditor.prototype.cancelBtnText = "Cancelar";
|
Ext.ux.grid.RowEditor.prototype.cancelBtnText = "Cancelar";
|
||||||
Ext.ux.grid.RowEditor.prototype.saveText = "Salvar";
|
Ext.ux.grid.RowEditor.prototype.saveText = "Salvar";
|
||||||
Ext.ux.grid.RowEditor.prototype.cancelText = "Cancelar";
|
Ext.ux.grid.RowEditor.prototype.cancelText = "Cancelar";
|
||||||
|
Ext.ux.grid.RowEditor.prototype.errorText = "Erros";
|
||||||
|
Ext.ux.grid.RowEditor.prototype.commitChangesText = "Você precisa atualizar ou cancelar suas alterações";
|
||||||
}
|
}
|
||||||
|
|
||||||
if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
|
if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
|
||||||
|
|||||||
@@ -287,6 +287,14 @@ if(Ext.grid.GridView){
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(Ext.grid.GroupingView){
|
||||||
|
Ext.apply(Ext.grid.GroupingView.prototype, {
|
||||||
|
emptyGroupText : '(Nenhum)',
|
||||||
|
groupByText : 'Grupo por este campo',
|
||||||
|
showGroupsText : 'Mostrar em Grupos'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if(Ext.grid.PropertyColumnModel){
|
if(Ext.grid.PropertyColumnModel){
|
||||||
Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
|
Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
|
||||||
nameText : "Nome",
|
nameText : "Nome",
|
||||||
@@ -300,6 +308,8 @@ if (Ext.ux.grid.RowEditor) {
|
|||||||
Ext.ux.grid.RowEditor.prototype.cancelBtnText = "Cancelar";
|
Ext.ux.grid.RowEditor.prototype.cancelBtnText = "Cancelar";
|
||||||
Ext.ux.grid.RowEditor.prototype.saveText = "Salvar";
|
Ext.ux.grid.RowEditor.prototype.saveText = "Salvar";
|
||||||
Ext.ux.grid.RowEditor.prototype.cancelText = "Cancelar";
|
Ext.ux.grid.RowEditor.prototype.cancelText = "Cancelar";
|
||||||
|
Ext.ux.grid.RowEditor.prototype.errorText = "Erros";
|
||||||
|
Ext.ux.grid.RowEditor.prototype.commitChangesText = "Você precisa atualizar ou cancelar suas alterações";
|
||||||
}
|
}
|
||||||
|
|
||||||
if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
|
if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
|
||||||
|
|||||||
@@ -313,9 +313,16 @@ class headPublisher
|
|||||||
$head = $head . " <script type=\"text/javascript\" src=\"" . G::browserCacheFilesUrl("/js/ext/ext-base.js") . "\"></script>\n";
|
$head = $head . " <script type=\"text/javascript\" src=\"" . G::browserCacheFilesUrl("/js/ext/ext-base.js") . "\"></script>\n";
|
||||||
$head = $head . " <script type=\"text/javascript\" src=\"" . G::browserCacheFilesUrl("/js/ext/ext-all.js") . "\"></script>\n";
|
$head = $head . " <script type=\"text/javascript\" src=\"" . G::browserCacheFilesUrl("/js/ext/ext-all.js") . "\"></script>\n";
|
||||||
|
|
||||||
$aux = explode('-', strtolower(SYS_LANG));
|
if (SYS_LANG != 'en') {
|
||||||
if (($aux[0] != 'en') && file_exists(PATH_GULLIVER_HOME . 'js' . PATH_SEP . 'ext' . PATH_SEP . 'locale' . PATH_SEP . 'ext-lang-' . $aux[0] . '.js')) {
|
$tempLang = str_replace('-', '_', SYS_LANG);
|
||||||
$head = $head . " <script type=\"text/javascript\" src=\"" . G::browserCacheFilesUrl("/js/ext/locale/ext-lang-" . $aux[0] . ".js") . "\"></script>\n";
|
if (file_exists(PATH_GULLIVER_HOME . 'js' . PATH_SEP . 'ext' . PATH_SEP . 'locale' . PATH_SEP . 'ext-lang-' . $tempLang . '.js')) {
|
||||||
|
$head = $head . " <script type=\"text/javascript\" src=\"" . G::browserCacheFilesUrl("/js/ext/locale/ext-lang-" . $tempLang . ".js") . "\"></script>\n";
|
||||||
|
} else {
|
||||||
|
$aux = explode('-', strtolower(SYS_LANG));
|
||||||
|
if (file_exists(PATH_GULLIVER_HOME . 'js' . PATH_SEP . 'ext' . PATH_SEP . 'locale' . PATH_SEP . 'ext-lang-' . $aux[0] . '.js')) {
|
||||||
|
$head = $head . " <script type=\"text/javascript\" src=\"" . G::browserCacheFilesUrl("/js/ext/locale/ext-lang-" . $aux[0] . ".js") . "\"></script>\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// enabled for particular use
|
// enabled for particular use
|
||||||
|
|||||||
@@ -50,6 +50,26 @@ if (file_exists( PATH_PLUGINS . $fields['AUTH_SOURCE_PROVIDER'] . PATH_SEP . $fi
|
|||||||
if ($pluginEnabled == 0) {
|
if ($pluginEnabled == 0) {
|
||||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'login/showMessage', '', array ('MESSAGE' => G::LoadTranslation( 'ID_AUTH_SOURCE_MISSING' ) ) );
|
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'login/showMessage', '', array ('MESSAGE' => G::LoadTranslation( 'ID_AUTH_SOURCE_MISSING' ) ) );
|
||||||
G::RenderPage( 'publish', 'blank' );
|
G::RenderPage( 'publish', 'blank' );
|
||||||
|
} else {
|
||||||
|
G::LoadClass('configuration');
|
||||||
|
$c = new Configurations();
|
||||||
|
$configPage = $c->getConfiguration('additionalTablesList', 'pageSize','',$_SESSION['USER_LOGGED']);
|
||||||
|
$Config['pageSize'] = isset($configPage['pageSize']) ? $configPage['pageSize'] : 20;
|
||||||
|
|
||||||
|
$oHeadPublisher = & headPublisher::getSingleton ();
|
||||||
|
|
||||||
|
$oHeadPublisher->assign("FORMATS", $c->getFormats());
|
||||||
|
$oHeadPublisher->assign("CONFIG", $Config);
|
||||||
|
|
||||||
|
if (file_exists(PATH_PLUGINS . $fields["AUTH_SOURCE_PROVIDER"] . PATH_SEP . $fields["AUTH_SOURCE_PROVIDER"] . 'Flag')) {
|
||||||
|
$oHeadPublisher = & headPublisher::getSingleton ();
|
||||||
|
|
||||||
|
$oHeadPublisher->assign("Fields", $fields);
|
||||||
|
$oHeadPublisher->addExtJsScript (PATH_PLUGINS . $fields["AUTH_SOURCE_PROVIDER"] . PATH_SEP . 'js' . PATH_SEP . 'library', false, true );
|
||||||
|
$oHeadPublisher->addExtJsScript (PATH_PLUGINS . $fields["AUTH_SOURCE_PROVIDER"] . PATH_SEP . 'js' . PATH_SEP . 'ldapAdvancedSearch', false, true );
|
||||||
|
G::RenderPage ('publish', 'extJs');
|
||||||
|
die();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1218,7 +1218,7 @@ loadFieldNormal = function(){
|
|||||||
});
|
});
|
||||||
var assignedGridGotData = Ext.getCmp('assignedGrid').getStore().getCount() > 0;
|
var assignedGridGotData = Ext.getCmp('assignedGrid').getStore().getCount() > 0;
|
||||||
if(assignedGridGotData) {
|
if(assignedGridGotData) {
|
||||||
Ext.MessageBox.confirm('Confirm', 'The row data that you recently created will be deleted?', function(button) {
|
Ext.MessageBox.confirm(_('ID_CONFIRM'), _('ID_CONFIRM_ASSIGNED_GRID'), function(button) {
|
||||||
if(button=='yes'){
|
if(button=='yes'){
|
||||||
Ext.getCmp('assignedGrid').store.removeAll();
|
Ext.getCmp('assignedGrid').store.removeAll();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user