Skip to content
This repository has been archived by the owner on Feb 15, 2019. It is now read-only.

Commit

Permalink
preventing form resetting
Browse files Browse the repository at this point in the history
  • Loading branch information
dessalines committed Sep 10, 2014
1 parent 80edfe3 commit 8ce7029
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions resources/bitpieces_practice.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1550,8 +1550,8 @@ ALTER TABLE creators MODIFY fee_pct DOUBLE UNSIGNED NOT NULL DEFAULT 0.01 AFTER
ALTER TABLE creators_page_fields DROP description;
ALTER TABLE creators_page_fields DROP youtube_link;
ALTER TABLE creators_page_fields ADD COLUMN description VARCHAR(141) NOT NULL DEFAULT 'no description yet' AFTER creators_id;
ALTER TABLE creators_page_fields ADD COLUMN youtube_link VARCHAR(300) NOT NULL DEFAULT 'no youtube link yet' AFTER creators_id;
ALTER TABLE creators_page_fields ADD COLUMN description VARCHAR(141) AFTER creators_id;
ALTER TABLE creators_page_fields ADD COLUMN youtube_link TINYTEXT AFTER creators_id;
-- Add the description, and picture link
Expand Down
2 changes: 1 addition & 1 deletion resources/testweb/tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ function standardFormPost(shortUrl, formId, modalId, reload, successFunctions) {
// "; expires=" + expireTimeString(60*60); // 1 hour (field is in seconds)
// Hide the modal, reset the form, show successful

$(formId)[0].reset();
// $(formId)[0].reset();
$(modalId).modal('hide');
// console.log(modalId);
toastr.success(data);
Expand Down

0 comments on commit 8ce7029

Please sign in to comment.