PATH:
home
/
letacommog
/
letaweb
/
scripts
//script for handle creating page process var current_step = current_step || 1; $(document).ready(function() { doCreate(current_step); }); //process current creating page step function doCreate(step) { $.ajax({ type: 'POST', url: window.url, data: {step: step, id : window.id,YII_CSRF_TOKEN:window.YII_CSRF_TOKEN}, error: function() { doUndo(); }, success: function (data) { try { var json = $.parseJSON(data); var success = json.success; if(typeof success != 'undefined' && success == 1) { if(typeof json.page_name != 'undefined') { window.page_name = json.page_name; } if(typeof json.page_id != 'undefined') { window.page_id = json.page_id; } if(typeof json.edit_site_url != 'undefined') { $('#edit_new_site_btn').attr('href', json.edit_site_url); } if(typeof json.next != 'undefined') { window.current_step = json.next; var name = json.name; $('#progress_description').html(name); var percent = json.percent; //console.log(percent + '%'); $('#progress_bar_progress').css('width', percent + '%'); $('#progress_percent_indicator').html(percent + '%'); doCreate(window.current_step); } else if(typeof json.finish != 'undefined' && json.finish == 1) { //$('#progress_bar_progress').css('width', '100%'); var name = json.name; $('#progress_description').html(name); $('#progress_bar_progress').css('width', '100%'); $('#progress_percent_indicator').html('100%'); setTimeout(function() { $('#success_container').siblings().fadeOut(); $('#success_container').html(json.html); $('#success_container').animate( { opacity: 'toggle', }, 1000); }, 2000); } } else { doUndo(); $('#fail_container').siblings().hide(); $('#fail_container').animate( { opacity: 'toggle' }, 4000); } } catch(e) { doUndo(); $('#undo_container').hide(); $('#fail_container').siblings().fadeOut(); $('#fail_container').animate( { opacity: 'toggle' }, 4000); } } }); } //function to undo if the creation failed function doUndo() { $('#undo_container').show(); $.ajax({ type: 'POST', url: 'doUndo', data: {id : window.id,YII_CSRF_TOKEN:window.YII_CSRF_TOKEN}, success: function (data) { //window.location.href = data; } }); }
[+]
..
[+]
sample_images
[-] ssultils.js
[edit]
[-] dialog.js
[edit]
[-] colorpicker.js
[edit]
[-] script.js
[edit]
[+]
libraries
[-] ui.dbfilter-editing.js
[edit]
[-] stgrid.js
[edit]
[-] ui.category-editing.js
[edit]
[-] forms.js
[edit]
[-] player.swf
[edit]
[-] language.js
[edit]
[-] im.js
[edit]
[-] terms_en.js
[edit]
[-] skinutils.js
[edit]
[-] create_page.js
[edit]
[-] ihover.js
[edit]
[-] builder.js
[edit]
[-] ui.tab-content.js
[edit]
[-] admin.js
[edit]
[-] ui.tab-editing.js
[edit]
[-] login.js
[edit]
[-] popup.js
[edit]
[-] ecommerce.js
[edit]
[-] stEditor.js
[edit]
[-] colorutils.js
[edit]
[-] livedemo.js
[edit]
[-] palette.js
[edit]
[+]
editor