mirror of
https://github.com/myvesta/vesta
synced 2025-07-11 15:46:43 -07:00
Javascript update set
This commit is contained in:
parent
0b9711d7c9
commit
257423147e
9 changed files with 94 additions and 48 deletions
|
@ -202,10 +202,14 @@ App.Helpers.getFormValuesFromElement = function(ref)
|
|||
App.Helpers.updateScreen = function()
|
||||
{
|
||||
Custom.init();
|
||||
App.Ajax.request('MAIN.getInitial', {}, function(reply){
|
||||
App.Env.initialParams = reply.data;
|
||||
App.Helpers.updateInitial();
|
||||
});
|
||||
//$(document.body).find('select').each(function(i, o){
|
||||
// $(o).selectbox();
|
||||
//});
|
||||
}
|
||||
}
|
||||
|
||||
App.Helpers.alert = function(msg)
|
||||
{
|
||||
|
@ -287,3 +291,21 @@ App.Helpers.getBackendUrl = function()
|
|||
|
||||
return url_parts.join('/');
|
||||
}
|
||||
|
||||
App.Helpers.disbleNotEditable = function()
|
||||
{
|
||||
if ('undefined' == typeof App.Settings.Imutable[App.Env.world]) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$('.form').each(function(i, form)
|
||||
{
|
||||
if ($(form).attr('id') == '') {
|
||||
$('input, select, textarea', form).each(function(i, elm) {
|
||||
if ($.inArray($(elm).attr('name'), App.Settings.Imutable[App.Env.world]) != -1) {
|
||||
$(elm).attr('disabled', true);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue