Subversion-Projekte lars-tiefland.ci

Revision

Revision 949 | Revision 985 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 949 Revision 966
Zeile 149... Zeile 149...
149
            }
149
            }
150
          ]
150
          ]
151
        });*/
151
        });*/
152
        $('.task_edit').click(edit_task);
152
        $('.task_edit').click(edit_task);
153
        $('.newTask').click(newTask);
153
        $('.newTask').click(newTask);
-
 
154
 
-
 
155
        $('#userResult').dialog({
-
 
156
            width:800,
-
 
157
            autoOpen:false,
-
 
158
            modal:true,
-
 
159
            resizable:false,
-
 
160
            buttons:[{
-
 
161
                text:"OK",
-
 
162
                icons: {
-
 
163
                    primary: "ui-icon-check"
-
 
164
                },
-
 
165
                showText: false,
-
 
166
                click:function()
-
 
167
                {
-
 
168
                    $('#userResult').dialog("close");
-
 
169
                    document.location.reload();
-
 
170
                }
-
 
171
            }]
-
 
172
        });
-
 
173
        $('#userForm').dialog({
-
 
174
            width:800,
-
 
175
            //height:600,
-
 
176
            autoOpen:false,
-
 
177
            modal:true,
-
 
178
            resizable:false,
-
 
179
            buttons:[{
-
 
180
                text:"speichern",
-
 
181
                icon: "ui-icon-check",
-
 
182
                showLabel: false,
-
 
183
                click:function()
-
 
184
                {
-
 
185
                    $('#taskResult').load("/backend/user/save/",$('#user_form').serializeArray(),function(){
-
 
186
                        $('#userResult').dialog("open");
-
 
187
                    })
-
 
188
                    $('#userForm').dialog("close");
-
 
189
                }
-
 
190
            },
-
 
191
            {
-
 
192
                text:"verwerfen",
-
 
193
				icon:"ui-icon-close",
-
 
194
                showLabel: false,
-
 
195
                click:function(){
-
 
196
                    $('#userForm').dialog("close");
-
 
197
                }
-
 
198
            }]
-
 
199
        })
-
 
200
        $('.user_edit').click(edit_user);
-
 
201
        $('.new_user').click(newUser);
154
    });
202
    });
Zeile 155... Zeile 203...
155
    
203
    
156
    function newTask(e)
204
    function newTask(e)
157
    {
205
    {
Zeile 171... Zeile 219...
171
        $.get(url,function(html)
219
        $.get(url,function(html)
172
        {
220
        {
173
            $('#taskForm').html(html).dialog("open");
221
            $('#taskForm').html(html).dialog("open");
174
        });
222
        });
175
    }
223
    }
-
 
224
 
-
 
225
    function newUser(e)
-
 
226
    {
-
 
227
        e.preventDefault();
-
 
228
        url="/backend/user/edit/";
-
 
229
        $.get(url,function(html)
-
 
230
        {
-
 
231
            $('#userForm').html(html).dialog("open");
-
 
232
        });
-
 
233
    }
-
 
234
    function edit_user(e)
-
 
235
    {
-
 
236
        e.preventDefault();
-
 
237
        tIdArr=$(this).attr("id").split("_");
-
 
238
        tId=tIdArr[1];
-
 
239
        url="/backend/user/edit/"+tId;
-
 
240
        $.get(url,function(html)
-
 
241
        {
-
 
242
            $('#userForm').html(html).dialog("open");
-
 
243
        });
-
 
244
    }