Changeset 5577
- Timestamp:
- 02/28/12 14:41:58 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/modules/mail/js/followupflag.js
r5576 r5577 134 134 if (followupflagId == 'custom') { 135 135 DataLayer.put('followupflag', {name:winElement.find('[name="name"] option:selected').text(), uid:User.me.id}); 136 DataLayer.commit( false, false, function(data){137 followupflags = DataLayer.get('followupflag',{criteria:{order: 'id'}}, true);138 followupflagId = followupflags[followupflags.length - 1].id;139 winElement.find('[name="name"] option[value="custom"]').val(followupflagId);140 });136 DataLayer.commit(); 137 138 followupflags = DataLayer.get('followupflag',{criteria:{order: 'id'}}, true); 139 followupflagId = followupflags[followupflags.length - 1].id; 140 winElement.find('[name="name"] option[value="custom"]').val(followupflagId); 141 141 } 142 142 … … 207 207 winElement.find('[name="followupflagId"]').val(id); 208 208 winElement.find('.menu-configure-followupflag .save').button("option", "disabled", true); 209 winElement.find('.menu-configure-followupflag .delete').button("option", "disabled", false); 209 210 }); 210 211 … … 259 260 winElement.dialog("close"); 260 261 }); 261 262 263 if(!winElement.find('[name="followupflagId"]').val()) 264 winElement.find('.menu-configure-followupflag .delete').button("option", "disabled", true); 265 262 266 263 /** 267 264 * Se houver mudança, habilita o botão "Save" … … 269 266 winElement.find(':input').change(function(event){ 270 267 if (event.keyCode != '27' && event.keyCode != '13') 271 $(this).button("option", "disabled", true);268 winElement.find('.menu-configure-followupflag .save').button("option", "disabled", false); 272 269 }).keydown(function(event){ 273 270 if (event.keyCode != '27' && event.keyCode != '13') 274 $(this).button("option", "disabled", true);271 winElement.find('.menu-configure-followupflag .save').button("option", "disabled", false); 275 272 }); 276 273
Note: See TracChangeset
for help on using the changeset viewer.